Package | Description |
---|---|
org.owasp.html |
An efficient
HtmlSanitizer
configurable via a flexible
HtmlPolicyBuilder . |
org.owasp.html.examples |
Modifier and Type | Method and Description |
---|---|
HtmlSanitizer.Policy |
PolicyFactory.apply(HtmlStreamEventReceiver out)
Produces a sanitizer that emits tokens to out.
|
HtmlSanitizer.Policy |
HtmlPolicyBuilder.build(HtmlStreamEventReceiver out)
Produces a policy based on the allow and disallow calls previously made.
|
Modifier and Type | Method and Description |
---|---|
static void |
HtmlSanitizer.sanitize(String html,
HtmlSanitizer.Policy policy)
Sanitizes the given HTML by applying the given policy to it.
|
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<HtmlStreamEventReceiver,HtmlSanitizer.Policy> |
SlashdotPolicyExample.POLICY_DEFINITION
A policy definition that matches the minimal HTML that Slashdot allows.
|
static com.google.common.base.Function<HtmlStreamEventReceiver,HtmlSanitizer.Policy> |
EbayPolicyExample.POLICY_DEFINITION |
Copyright © 2016 OWASP. All rights reserved.