Uses of Class
org.owasp.html.PolicyFactory
-
Packages that use PolicyFactory Package Description org.owasp.html An efficientHtmlSanitizerconfigurable via a flexibleHtmlPolicyBuilder.org.owasp.html.examples -
-
Uses of PolicyFactory in org.owasp.html
Fields in org.owasp.html declared as PolicyFactory Modifier and Type Field Description static PolicyFactorySanitizers. BLOCKSAllows common block elements including<p>,<h1>, etc.static PolicyFactorySanitizers. FORMATTINGAllows common formatting elements including<b>,<i>, etc.static PolicyFactorySanitizers. IMAGESAllows<img>elements from HTTP, HTTPS, and relative sources.static PolicyFactorySanitizers. LINKSAllows HTTP, HTTPS, MAILTO, and relative links.static PolicyFactorySanitizers. STYLESAllows certain safe CSS properties instyle="..."attributes.static PolicyFactorySanitizers. TABLESAllows common table elements.Methods in org.owasp.html that return PolicyFactory Modifier and Type Method Description PolicyFactoryPolicyFactory. 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.PolicyFactoryHtmlPolicyBuilder. toFactory()LikeHtmlPolicyBuilder.build(org.owasp.html.HtmlStreamEventReceiver)but can be reused to create many different policies each backed by a different output channel.Methods in org.owasp.html with parameters of type PolicyFactory Modifier and Type Method Description PolicyFactoryPolicyFactory. 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. -
Uses of PolicyFactory in org.owasp.html.examples
Fields in org.owasp.html.examples declared as PolicyFactory Modifier and Type Field Description static PolicyFactoryEbayPolicyExample. POLICY_DEFINITIONA policy that can be used to produce policies that sanitize to HTML sinks viaapply(org.owasp.html.HtmlStreamEventReceiver).
-