Closed Tenzer closed 9 years ago
A bit more digging and it's apparently related to Python 3.5. From that version the convert_charrefs
parameter on html.parser.HTMLParser() has changed the default value from False to True. I'll post a pull request to change this to false on Python 3.5 and never in a second.
Hi, I have a problem where htmlmin really can screw up a site. Consider this:
It's pretty dangerous to have the escaped, safe, tag get unescaped, as the rest of the site then will be swallowed into the
<script>
tag, unless you have a end tag further down the page.I don't know if this, like #17, is down to the Python HTML parser trying to be clever, and decodes it automatically without htmlmin knowing about it, or if it's something that can be solved.