Class DefaultHtmlSanitizer

    • Constructor Detail

      • DefaultHtmlSanitizer

        public DefaultHtmlSanitizer()
    • Method Detail

      • sanitize

        public String sanitize​(String html)
        Description copied from interface: HtmlSanitizer
        Sanitizing the given content by keeping:
        • safe formatting
        • safe blocks
        • safe images
        • safe links
        • safe tables
        • safe styles

        All links are modified in order to be opened safely into a new blank page.

        Specified by:
        sanitize in interface HtmlSanitizer
        Parameters:
        html - a string representing an HTML content.
        Returns:
        a string representing the sanitized version of given parameter.