|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.owasp.html.PolicyFactory
@ThreadSafe @Immutable public final class PolicyFactory
A factory that can be used to link a sanitizer to an output receiver and that
provides a convenient
method and a sanitize method to compose
policies.
and
| Method Summary | |
|---|---|
PolicyFactory |
and(PolicyFactory f)
Produces a factory that allows the union of the grants, and intersects policies where they overlap on a particular granted attribute or element name. |
HtmlSanitizer.Policy |
apply(HtmlStreamEventReceiver out)
Produces a sanitizer that emits tokens to out. |
java.lang.String |
sanitize(java.lang.String html)
A convenience function that sanitizes a string of HTML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
|---|
equals |
| Method Detail |
|---|
public HtmlSanitizer.Policy apply(HtmlStreamEventReceiver out)
apply in interface com.google.common.base.Function<HtmlStreamEventReceiver,HtmlSanitizer.Policy>
public java.lang.String sanitize(@Nullable
java.lang.String html)
public PolicyFactory and(PolicyFactory f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||