Modifier and Type | Method | 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> java.lang.String |
PolicyFactory.sanitize(java.lang.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 | Description |
---|---|
HtmlChangeReporter(HtmlStreamEventReceiver renderer,
HtmlChangeListener<? super T> listener,
T context) |
Copyright © 2019 OWASP. All rights reserved.