Class HtmlSanitizer

java.lang.Object
org.linkki.util.HtmlSanitizer

@Deprecated(since="2.3.1") public class HtmlSanitizer extends Object
Deprecated.
Use org.linkki.core.util.HtmlSanitizer instead
Utility class for sanitizing HTML text.
  • Method Details

    • sanitize

      @Deprecated(since="2.3.1") @CheckForNull public static String sanitize(@CheckForNull String text)
      Deprecated.
      Use org.linkki.core.util.HtmlSanitizer instead
      Escapes all < and > symbols that do not belong to an allowed HTML tag. Allowed tags are p, div, span, br, b, strong, i, em and u.
      Parameters:
      text - the input text, may be null
      Returns:
      the sanitized text, or null if the input is null