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

Fix for problem outputting style elements #26

Merged

Conversation

lightman76
Copy link
Contributor

I found that the content of the style elements was being escaped as if it were an HTML text node. This causes problems with things like background-image: url('my.png') which are then output as background-image: url('my.png'). Script tags were already being exempted from this escaping, so I've added style tags to that conditional as well and added a test case for this.

…ment was being escaped like a text node when it should be special cased (as script tags were).
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5967b0a on lightman76:dont_escape_style_element_content into 77b635e on nthtran:master.

@ntharim ntharim merged commit 6398a95 into ntharim:master Jan 22, 2017
@ntharim
Copy link
Owner

ntharim commented Jan 22, 2017

Thanks! Released as 2.3.1.

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

Successfully merging this pull request may close these issues.

None yet

3 participants