Overview of jsoup capabilities
masterjsoup is a Java library designed for working with real-world HTML and XML. It implements the WHATWG HTML5 specification, ensuring it parses HTML into a DOM similar to modern web browsers.
Key capabilities include:
- Scraping and Parsing: Fetch and parse HTML from URLs, files, or strings.
- Data Extraction: Find and extract data using DOM traversal or CSS selectors.
- Manipulation: Modify HTML elements, attributes, and text.
- Sanitization: Clean user-submitted content against a safe-list to prevent XSS attacks.
- Output: Generate tidy HTML output.