mankyd / htmlmin

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

Optional parameter that allows comments in tag attributes #22

Closed PhilipTrauner closed 9 years ago

PhilipTrauner commented 9 years ago

Comments in tag attributes would normally get escaped unless this modifier is active.

mankyd commented 9 years ago

This seems more like a potential bug than an option that needs to be set. According to the HTML spec, < and > should be allowable: https://html.spec.whatwg.org/multipage/syntax.html#syntax-attributes. As I look at it closer, it seems even & should be allowed so long as its not "ambiguous".