Class HTMLSanitizer


  • public class HTMLSanitizer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.owasp.html.PolicyFactory POLICY_DEFINITION
      A policy that can be used to produce policies that sanitize to HTML sinks via PolicyFactory.apply(org.owasp.html.HtmlStreamEventReceiver).
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLSanitizer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String sanitize​(java.lang.String untrustedHtml)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • POLICY_DEFINITION

        public static final org.owasp.html.PolicyFactory POLICY_DEFINITION
        A policy that can be used to produce policies that sanitize to HTML sinks via PolicyFactory.apply(org.owasp.html.HtmlStreamEventReceiver).
    • Constructor Detail

      • HTMLSanitizer

        public HTMLSanitizer()
    • Method Detail

      • sanitize

        public static java.lang.String sanitize​(java.lang.String untrustedHtml)