dev-java/
htmlcleaner

HTML parser written in Java that can be used as a tool, library or Ant task

https://htmlcleaner.sourceforge.net/