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

<noscript> content html-escaped despite it's marked safe #96

Open
fabiocaccamo opened this issue Nov 6, 2015 · 3 comments
Open

<noscript> content html-escaped despite it's marked safe #96

fabiocaccamo opened this issue Nov 6, 2015 · 3 comments

Comments

@fabiocaccamo
Copy link

Django template

<!-- ths "code" variable includes the <noscript> tag --> 
{{ code|safe }}

Template output with htmlmin middlewares added to settings.MIDDLEWARE_CLASSES

<!-- wrong -->
<noscript>&lt;iframe src="https://..."&gt;&lt;/iframe&gt;</noscript>

Template output after removing htmlmin middlewares:

<!-- correct -->
<noscript><iframe src="https://..."></iframe></noscript>
@tremby
Copy link

tremby commented Jul 7, 2016

I have a similar issue but without involving templates and "safe" filters. I simply have a <noscript> tag, which includes other HTML tags. The output after minifying has the angle brackets of the contained tags escaped to &lt; and &gt;.

@Paul424
Copy link

Paul424 commented Sep 6, 2017

Seeing the same issue (with a <link tag inside ), is there a workaround?

@scythargon
Copy link

+1 here

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

4 participants