Modifier and Type | Method and Description |
---|---|
<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. |
<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.
|
<CTX> String |
PolicyFactory.sanitize(String html,
HtmlChangeListener<CTX> listener,
CTX context)
A convenience function that sanitizes a string of HTML and reports
the names of rejected element and attributes to listener.
|
Constructor and Description |
---|
HtmlChangeReporter(HtmlStreamEventReceiver renderer,
HtmlChangeListener<? super T> listener,
T context) |
Copyright © 2016 OWASP. All rights reserved.