Class HTMLSanitizer
- java.lang.Object
-
- com.saperion.common.lang.sanitizers.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 viaPolicyFactory.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)
-