Class Sanitizer


  • @Deprecated
    public class Sanitizer
    extends Object
    Deprecated.
    moved to Prism API plugin
    Sanitizes a piece of unsafe HTML code so that it can be rendered in a UI view.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • Sanitizer

        public Sanitizer()
        Deprecated.
    • Method Detail

      • render

        public String render​(String html)
        Deprecated.
        Renders the specified HTML code. Removes unsafe HTML constructs.
        Parameters:
        html - the HTML to render
        Returns:
        safe HTML
      • render

        public String render​(j2html.tags.DomContent text)
        Deprecated.
        Renders the specified HTML code. Removes unsafe HTML constructs.
        Parameters:
        text - the text to render
        Returns:
        safe HTML