Skip to content

Instantly share code, notes, and snippets.

@documentprocessing
Created May 27, 2025 15:17
Show Gist options
  • Select an option

  • Save documentprocessing/a604961343fcd87de343ff53c5cfcba8 to your computer and use it in GitHub Desktop.

Select an option

Save documentprocessing/a604961343fcd87de343ff53c5cfcba8 to your computer and use it in GitHub Desktop.
Parse HTML in Java using jsoup API
String html = "<html><head><title>First parse</title></head>"
+ "<body><p>Parsed HTML into a doc.</p></body></html>";
Document doc = Jsoup.parse(html);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment