I want validate HTML code in Java.
Like this:
HTMLValidator.validateHTML("aaa<b>bbb<b>");
// Returns false, because tag <b> is not closed
What Java libraries exist to do this?
I want validate HTML code in Java.
Like this:
HTMLValidator.validateHTML("aaa<b>bbb<b>");
// Returns false, because tag <b> is not closed
What Java libraries exist to do this?
You can try JTidy. JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer.