Class HTMLSanitizer


  • public class HTMLSanitizer
    extends Object
    Removes elements from an HTML document that may lead to security problems
    Since:
    7.6.4
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • HTMLSanitizer

        public HTMLSanitizer()
    • Method Detail

      • sanitize

        public static String sanitize​(String unsafeHtmlContent)
      • sanitizeSimpleText

        public static String sanitizeSimpleText​(String unsafeHtmlContent)
      • stripIframes

        public static String stripIframes​(String htmlContent)