Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Java jsoup tutorial
Java jsoup tutorial

In this Java jsoup tutorial, we learn how to use the jsoup library.

Convert HTML into Plain Text in Java using jsoup
Convert HTML into Plain Text in Java using jsoup

In this tutorial, we are going to show how to use jsoup library to convert HTML content into plain text without HTML tag in a Java application.

Pretty Print XML String and XML File in Java using jsoup
Pretty Print XML String and XML File in Java using jsoup

In this tutorial, we are going to show how to use the jsoup library in a Java program to pretty sprint a XML String or XML file content. We provide different working Java programs to show different use cases on how to parse XML String or XML File into jsoup Document object in order to format the XML content for pretty printing.

jsoup Get All HTML Elements in Java
jsoup Get All HTML Elements in Java

In this post, we are going to learn how to use jsoup Java library to find all HTML elements in a HTML document.

Clean HTML String to get Safe HTML from Untrusted HTML in Java using jsoup
Clean HTML String to get Safe HTML from Untrusted HTML in Java using jsoup

The jsoup library provides static methods Jsoup.clean() to allow cleaning the HTML String from untrusted input. This feature can be used to sanitizer input of your web application in order to prevent XSS attacks. In this tutorial, we show you how to use this feature to get the safe HTML String from an untrusted HTML input.

jsoup Get HTML Elements by Attribute Value in Java
jsoup Get HTML Elements by Attribute Value in Java

In this post, we explore the different methods provided by jsoup Java library that allow finding HTML elements by attribute value.

jsoup Get HTML Elements by Attribute Name in Java
jsoup Get HTML Elements by Attribute Name in Java

In this post, we are going to use the jsoup library to find HTML elements by attribute name in a Java program.

jsoup Get HTML Elements by Tag Name in Java
jsoup Get HTML Elements by Tag Name in Java

In this post, we are going to use jsoup Java library to find HTML elements by HTML tag name.

jsoup Get HTML Element by ID in Java
jsoup Get HTML Element by ID in Java

In this post, we will learn how to find an element in an HTML document by its ID in a Java application using jsoup library.

jsoup Get HTML elements by CSS class name in Java
jsoup Get HTML elements by CSS class name in Java

In this post, we are going to learn how to use jsoup Java library to get all HTML elements by CSS class name.

  • 1
  • 2
  • 3

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.