Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not remove server and/or templating tags #59

Open
srcspider opened this issue Jun 18, 2015 · 2 comments
Open

Should not remove server and/or templating tags #59

srcspider opened this issue Jun 18, 2015 · 2 comments

Comments

@srcspider
Copy link

Given the following,

<p>Hello, <?php echo $name  ?></p>

It makes no sense to strip out the <?php ... ?> part.

This applies to other template styles, such as <% ... %> or shorthand styles <?= ... ?>.


Simplest solution to this would probably to have tag suffice/prefix pair exclusion rules.
eg. [ ['<%', '%>'], [ '<?', '?>' ] ...

@mlegenhausen
Copy link
Member

The problem is I need to strip out all content that is not usable for a text representation. This includes PHP tags which would normally interpreted by your PHP engine. I would suggest to escape all php tags, cause you want them to be displayed instead of interpreted.

@srcspider
Copy link
Author

I actually want them to be interpreted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants