Uses of Interface
org.owasp.html.HtmlSanitizer.Policy
-
Packages that use HtmlSanitizer.Policy Package Description org.owasp.html An efficientHtmlSanitizerconfigurable via a flexibleHtmlPolicyBuilder.org.owasp.html.examples -
-
Uses of HtmlSanitizer.Policy in org.owasp.html
Methods in org.owasp.html that return HtmlSanitizer.Policy Modifier and Type Method Description HtmlSanitizer.PolicyPolicyFactory. apply(HtmlStreamEventReceiver out)Produces a sanitizer that emits tokens toout.<CTX> HtmlSanitizer.PolicyPolicyFactory. apply(HtmlStreamEventReceiver out, HtmlChangeListener<CTX> listener, CTX context)Produces a sanitizer that emits tokens tooutand that notifies anylistenerof any dropped tags and attributes.HtmlSanitizer.PolicyHtmlPolicyBuilder. build(HtmlStreamEventReceiver out)Produces a policy based on the allow and disallow calls previously made.<CTX> HtmlSanitizer.PolicyHtmlPolicyBuilder. build(HtmlStreamEventReceiver out, HtmlChangeListener<? super CTX> listener, CTX context)Produces a policy based on the allow and disallow calls previously made.HtmlSanitizer.PolicyHtmlChangeReporter. getWrappedPolicy()The underlying policy.Methods in org.owasp.html with parameters of type HtmlSanitizer.Policy Modifier and Type Method Description static voidHtmlSanitizer. sanitize(String html, HtmlSanitizer.Policy policy)Sanitizes the given HTML by applying the given policy to it.static voidHtmlSanitizer. sanitize(String html, HtmlSanitizer.Policy policy, HtmlStreamEventProcessor preprocessor)Sanitizes the given HTML by applying the given policy to it.voidHtmlChangeReporter. setPolicy(HtmlSanitizer.Policy policy)Associates an input channel. -
Uses of HtmlSanitizer.Policy in org.owasp.html.examples
Fields in org.owasp.html.examples with type parameters of type HtmlSanitizer.Policy Modifier and Type Field Description static com.google.common.base.Function<HtmlStreamEventReceiver,HtmlSanitizer.Policy>SlashdotPolicyExample. POLICY_DEFINITIONA policy definition that matches the minimal HTML that Slashdot allows.
-