classic HTML(5) tidy one liner

Excited today to read about the w3c’s experimental fork of tidy for HTML5. This is no joke.

Haven’t played around with it yet, as I’m rocking windows at the moment, but mayhaps a cygwin port is forthcoming.

At any rate, here is a quick one-liner for batching a folder’s worth of documents:

find . -type f -name "*.html" -exec tidy -f errors.txt -m -utf8 -i {} \;

This work on a current directory, but exchange the “.” for qualified path if you like.

Check the resultant “errors.txt” for…

What say you?