Interface HtmlSanitizer

All Known Implementing Classes:
HtmlEntityEncodingHtmlSanitizer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HtmlSanitizer
API to sanitize a String of HTML.
Since:
4.7.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    Sanitizes a string of HTML.
  • Method Details

    • sanitize

      Sanitizes a string of HTML.
      Parameters:
      html - the String of HTML to Sanitize
      Returns:
      a sanitized version of the supplied HTML String.