Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
<dependency>
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>20260313.1</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sanitize HTML allowing only formatting and links.
Use the most restrictive policy that meets your needs, e.g., Sanitizers.BLOCKS or Sanitizers.FORMATTING.
No dependency data recorded yet.