mankyd / htmlmin

A configurable HTML Minifier with safety features
https://htmlmin.readthedocs.org/en/latest/
Other
130 stars 40 forks source link

">" incorrectly transformed as > #32

Closed plyd closed 7 years ago

plyd commented 8 years ago

is transformed in <input value=>> which is not good HTML.

mankyd commented 8 years ago

Howdy. This sounds like a bad issue. Can you provide me with a sample where there problem occurs?

plyd commented 8 years ago

Hello mankyd, Thanks for your answer! Here is a small example I wrote with this bug :

!/usr/bin/python2.7

import htmlmin

example_page = u"""

Click on the button to submit

"""

minified_example = htmlmin.minify(example_page) print minified_example

returns:

Click on the button to submit <input type=submit value=>>