Uses of Class
org.owasp.html.PolicyFactory
-
Packages that use PolicyFactory Package Description org.owasp.html An efficientHtmlSanitizer
configurable 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 PolicyFactory
Sanitizers. BLOCKS
Allows common block elements including<p>
,<h1>
, etc.static PolicyFactory
Sanitizers. FORMATTING
Allows common formatting elements including<b>
,<i>
, etc.static PolicyFactory
Sanitizers. IMAGES
Allows<img>
elements from HTTP, HTTPS, and relative sources.static PolicyFactory
Sanitizers. LINKS
Allows HTTP, HTTPS, MAILTO, and relative links.static PolicyFactory
Sanitizers. STYLES
Allows certain safe CSS properties instyle="..."
attributes.static PolicyFactory
Sanitizers. TABLES
Allows common table elements.Methods in org.owasp.html that return PolicyFactory Modifier and Type Method Description PolicyFactory
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.PolicyFactory
HtmlPolicyBuilder. 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 PolicyFactory
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. -
Uses of PolicyFactory in org.owasp.html.examples
Fields in org.owasp.html.examples declared as PolicyFactory Modifier and Type Field Description static PolicyFactory
EbayPolicyExample. POLICY_DEFINITION
A policy that can be used to produce policies that sanitize to HTML sinks viaapply(org.owasp.html.HtmlStreamEventReceiver)
.
-