Package org.linkki.util
Class HtmlSanitizer
- java.lang.Object
-
- org.linkki.util.HtmlSanitizer
-
@Deprecated(since="2.3.1") public class HtmlSanitizer extends Object
Deprecated.Useorg.linkki.core.util.HtmlSanitizerinsteadUtility class for sanitizing HTML text.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Stringsanitize(String text)Deprecated.Useorg.linkki.core.util.HtmlSanitizerinstead
-
-
-
Method Detail
-
sanitize
@Deprecated(since="2.3.1") @CheckForNull public static String sanitize(@CheckForNull String text)
Deprecated.Useorg.linkki.core.util.HtmlSanitizerinsteadEscapes 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 benull- Returns:
- the sanitized text, or
nullif the input isnull
-
-