HTML validator in Java [closed]
•
Java
I want to validate HTML code in Java
Like this:
HTMLValidator.validateHTML("aaa<b>bbb<b>"); // Returns false,because tag <b> is not closed
What Java libraries can be implemented?
Solution
You can try jtidy
http://jtidy.sourceforge.net/
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码