We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When calling render on a View or Preview object and giving a text/plain mime-type then I don’t see a need for HTML escaping.
render
View
Preview
text/plain
Right now we need to manually disable it, e.g.:
$f3->set('ESCAPE', false); $text = Preview::instance()->render($template, 'text/plain'); $f3->set('ESCAPE', true);
I request that escaping is enabled only when the mime-type matches the following regular expression: ^(text/html|(application|text)/(.+\+)?xml)$.
^(text/html|(application|text)/(.+\+)?xml)$
If there is agreement I can submit a PR.
The text was updated successfully, but these errors were encountered:
sandbox: disable escaping when rendering as text/plain, bcosca/fatfre…
f7b934f
…e#654
add test for sandbox: disable escaping when rendering as text/plain, #…
2c9df9e
…654
No branches or pull requests
When calling
render
on aView
orPreview
object and giving atext/plain
mime-type then I don’t see a need for HTML escaping.Right now we need to manually disable it, e.g.:
I request that escaping is enabled only when the mime-type matches the following regular expression:
^(text/html|(application|text)/(.+\+)?xml)$
.If there is agreement I can submit a PR.
The text was updated successfully, but these errors were encountered: