2 ms·
Interestingly, the HTML serialiser in html5lib[1] actually defaults to omitting omittable tags; I wanted a small script like htmltidy that used the HTML5 parsin
by thristian 16y ago
Interestingly, the HTML serialiser in html5lib[1] actually defaults to omitting omittable tags; I wanted a small script like htmltidy that used the HTML5 parsing algorithm, so I hooked up the html5lib parser and serialiser, and wound up with output even more chopped and cryptic than what I put in.
Luckily, setting the include-optional-tags option gave me much more readable output.
[1]: http://code.google.com/p/html5lib/ http://code.google.com/p/html5lib/