Re:HTML5 Tidy: The granddaddy of HTML tools
by bcg1 on Wednesday January 13, 2016 @05:39PM
(#10898199)
tidy is a swiss army knife for HTML and XML... it does the things you said and a lot more.
Pretty printing, switching encodings, conversions between HTML/XHTML, validation, removing those stupid quotation marks that MS Word litters all over the place in its vain attempt to ruin the universe... many annoying problems with HTML are easily solved with tidy
Re:HTML5 Tidy: The granddaddy of HTML tools
by jnellis on Wednesday January 13, 2016 @10:10PM
(#10899384)
It comes from the early web when scraping web pages was a thing. Html is not always clean, missing end tags, cross nested tags, invalid tags, misused tags or you need xhtml/xml compatible html so you can do xpath/xslt on it.
Can anyone share when they've found this to be useful? For example, does it compress HTML for faster page loads, or fix invalid HTML (e.g. from wysiwyg editors).