htmlSanityCheck icon indicating copy to clipboard operation
htmlSanityCheck copied to clipboard

Validate the HTML itself

Open msgilligan opened this issue 9 years ago • 2 comments

It would be nice if this tool could also validate the HTML.

You may be able to do this with JSoup directly, it looks like it can report parser errors.

I also found this Stack Overflow post that shows how to use JSoup to parse output from the w3c validator:

http://stackoverflow.com/questions/23737300/how-to-validate-html-using-java-getting-issues-with-jsoup-library

msgilligan avatar Jul 03 '16 01:07 msgilligan

another option could be the (very old) jtidy: http://jtidy.sourceforge.net/howto.html

gernotstarke avatar Sep 13 '18 05:09 gernotstarke

Doing a quick check I could not find a validation opportunity with JSoup. However, there seems to be a revived version of JTidy on GitHub: https://github.com/jtidy/jtidy which has released its latest version in 2023.

ascheman avatar Jan 28 '24 16:01 ascheman