HTML5 Tidy: The granddaddy of HTML tools
html-tidy.org
html-tidy.org
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).
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
Please include examples of files cleaned with the tool.
My company created an open-source HTML-diffing PHP package[0] that could be considerably improved by replacing the old Tidy with the HTML5 Tidy (if I only knew how!)
https://github.com/gathercontent/htmldiff/blob/master/compos...
Recently went to check, after a >1 decade break. The man page is 5000 words, tons and tons and tons of options. No tabs though.
Edit: apparently this feature got added last May! Just waiting on my distro now. Sweet! https://github.com/htacg/tidy-html5/issues/108