Modifier and Type | Method and Description |
---|---|
HtmlSanitizer.Policy |
PolicyFactory.apply(HtmlStreamEventReceiver out)
Produces a sanitizer that emits tokens to
out . |
<CTX> HtmlSanitizer.Policy |
PolicyFactory.apply(HtmlStreamEventReceiver out,
HtmlChangeListener<CTX> listener,
CTX context)
Produces a sanitizer that emits tokens to
out and that notifies
any listener of any dropped tags and attributes. |
HtmlSanitizer.Policy |
HtmlPolicyBuilder.build(HtmlStreamEventReceiver out)
Produces a policy based on the allow and disallow calls previously made.
|
<CTX> HtmlSanitizer.Policy |
HtmlPolicyBuilder.build(HtmlStreamEventReceiver out,
HtmlChangeListener<? super CTX> listener,
CTX context)
Produces a policy based on the allow and disallow calls previously made.
|
HtmlSanitizer.Policy |
HtmlChangeReporter.getWrappedPolicy()
The underlying policy.
|
Modifier and Type | Method and Description |
---|---|
static void |
HtmlSanitizer.sanitize(String html,
HtmlSanitizer.Policy policy)
Sanitizes the given HTML by applying the given policy to it.
|
static void |
HtmlSanitizer.sanitize(String html,
HtmlSanitizer.Policy policy,
HtmlStreamEventProcessor preprocessor)
Sanitizes the given HTML by applying the given policy to it.
|
void |
HtmlChangeReporter.setPolicy(HtmlSanitizer.Policy policy)
Associates an input channel.
|
Copyright © 2016 OWASP. All rights reserved.