jsoup is a Java library for working with real-world HTML. It can parse HTML from a URL, file, or string. It can find and extract data, using DOM traversal or CSS selectors. The HTML elements, attributes, and text can be manipulated. It can clean user-submitted content against a safe white-list. jsoup is designed to deal with all varieties of HTML found in the wild, from pristine and validating to invalid tag-soup; jsoup will create a sensible parse tree.


This release adds many improvements, including a relaxed XML parser, a lighter memory footprint, and a range of bugfixes.

URL: jsoup Java HTML Parser, with best of DOM, CSS, and jquery