mankyd / htmlmin

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

merged: add escape_tags option to enable/disable escaping tag names and attribut... #21

Open scythargon opened 9 years ago

scythargon commented 9 years ago

...es from @trbs

mankyd commented 7 years ago

I am reviewing this (sorry for the super unreasonable delay). My hesitation in merging is that this produces invalid HTML.

I am thinking the minifier should do it the hard way and deal specifically with "ambiguouos ampersands":

https://www.w3.org/TR/html5/single-page.html#syntax-ambiguous-ampersand