public class DynamicAttributesSanitizerPolicy extends Object
| Constructor and Description |
|---|
DynamicAttributesSanitizerPolicy(org.owasp.html.HtmlStreamEventReceiver out,
com.google.common.collect.ImmutableMap<String,org.owasp.html.ElementAndAttributePolicies> elAndAttrPolicies,
com.google.common.collect.ImmutableSet<String> allowedTextContainers,
Map<String,org.owasp.html.AttributePolicy> dynamicAttributesPolicyMap,
List<String> onInvalidRemoveTagList) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeDocument() |
void |
closeTag(String arg0) |
int |
getNumberOfErrors() |
void |
openDocument() |
void |
openTag(String elementName,
List<String> attrs) |
void |
text(String arg0) |
public DynamicAttributesSanitizerPolicy(org.owasp.html.HtmlStreamEventReceiver out,
com.google.common.collect.ImmutableMap<String,org.owasp.html.ElementAndAttributePolicies> elAndAttrPolicies,
com.google.common.collect.ImmutableSet<String> allowedTextContainers,
Map<String,org.owasp.html.AttributePolicy> dynamicAttributesPolicyMap,
List<String> onInvalidRemoveTagList)
public void openTag(String elementName, List<String> attrs)
openTag in interface org.owasp.html.HtmlSanitizer.PolicyopenTag in interface org.owasp.html.HtmlStreamEventReceiverpublic int getNumberOfErrors()
public void openDocument()
openDocument in interface org.owasp.html.HtmlStreamEventReceiverpublic void closeDocument()
closeDocument in interface org.owasp.html.HtmlStreamEventReceiverpublic void text(String arg0)
text in interface org.owasp.html.HtmlSanitizer.Policytext in interface org.owasp.html.HtmlStreamEventReceiverpublic void closeTag(String arg0)
closeTag in interface org.owasp.html.HtmlSanitizer.PolicycloseTag in interface org.owasp.html.HtmlStreamEventReceiverCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.