How to validate HTML from Java?

后端 未结 2 997
长情又很酷
长情又很酷 2020-12-10 12:52

What is a fast and simple way to validate HTML from Java? I’m looking for an open-source/PD class (or set of classes) that describes the various properties of the 100-odd H

2条回答
  •  爱一瞬间的悲伤
    2020-12-10 13:40

    Check JTidy (http://jtidy.sourceforge.net/) and VietSpider HTMLParser ( http://sourceforge.net/projects/binhgiang/ ) both are Java HTML parser and some syntax checking capabilities. Some eclipse based HTML editor plugin use JTidy (or port of Tidy) for syntax checking. Or as David Said, submit the page to w3c.org

提交回复
热议问题