mankyd / htmlmin

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

Better Escaping of Attributes #24

Closed mankyd closed 9 years ago

mankyd commented 9 years ago

Per https://github.com/mankyd/htmlmin/pull/22, we currently escape < and other characters that don't require escaping.

According to the spec, only ", ', and & potentially require escaping: https://html.spec.whatwg.org/multipage/syntax.html#syntax-attributes