Home
last modified time | relevance | path

Searched refs:HtmlPolicyBuilder (Results 1 – 12 of 12) sorted by relevance

/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlPolicyBuilderTest.java67 apply(new HtmlPolicyBuilder())); in testTextFilter()
82 apply(new HtmlPolicyBuilder() in testCannedFormattingTagFilter()
99 apply(new HtmlPolicyBuilder() in testCannedFormattingTagFilterNoItalics()
116 apply(new HtmlPolicyBuilder() in testSimpleTagFilter()
133 apply(new HtmlPolicyBuilder() in testLinksAllowed()
151 apply(new HtmlPolicyBuilder() in testExternalLinksAllowed()
170 apply(new HtmlPolicyBuilder() in testLinksWithNofollow()
190 apply(new HtmlPolicyBuilder() in testImagesAllowed()
210 apply(new HtmlPolicyBuilder() in testStyleFiltering()
229 apply(new HtmlPolicyBuilder() in testElementTransforming()
[all …]
DSanitizersTest.java99 PolicyFactory restrictedLink = new HtmlPolicyBuilder() in testAndIntersects()
197 PolicyFactory s = new HtmlPolicyBuilder() in testExplicitlyAllowedProtocolsAreCaseInsensitive()
235 PolicyFactory s = new HtmlPolicyBuilder() in testIssue9StylesInTables()
267 PolicyFactory extras = new HtmlPolicyBuilder() in testSkipIfEmptyUnionsProperly()
DBenchmark.java182 private static HtmlPolicyBuilder policyBuilder;
187 policyBuilder = new HtmlPolicyBuilder() in sanitizeUsingPolicyBuilder()
DHtmlPolicyBuilderFuzzerTest.java59 = new HtmlPolicyBuilder()
DHtmlSanitizerTest.java353 HtmlSanitizer.Policy policy = new HtmlPolicyBuilder() in sanitize()
DAntiSamyTest.java70 return new HtmlPolicyBuilder() in makePolicy()
/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlPolicyBuilder.java155 public class HtmlPolicyBuilder { class
180 public HtmlPolicyBuilder allowElements(String... elementNames) { in allowElements()
189 public HtmlPolicyBuilder disallowElements(String... elementNames) { in disallowElements()
199 public HtmlPolicyBuilder allowElements( in allowElements()
222 public HtmlPolicyBuilder allowCommonInlineFormattingElements() { in allowCommonInlineFormattingElements()
231 public HtmlPolicyBuilder allowCommonBlockElements() { in allowCommonBlockElements()
248 public HtmlPolicyBuilder allowTextIn(String... elementNames) { in allowTextIn()
257 public HtmlPolicyBuilder disallowTextIn(String... elementNames) { in disallowTextIn()
273 public HtmlPolicyBuilder allowWithoutAttributes(String... elementNames) { in allowWithoutAttributes()
288 public HtmlPolicyBuilder disallowWithoutAttributes(String... elementNames) { in disallowWithoutAttributes()
[all …]
DSanitizers.java58 public static final PolicyFactory FORMATTING = new HtmlPolicyBuilder()
65 public static final PolicyFactory BLOCKS = new HtmlPolicyBuilder()
71 public static final PolicyFactory STYLES = new HtmlPolicyBuilder()
77 public static final PolicyFactory LINKS = new HtmlPolicyBuilder()
103 public static final PolicyFactory IMAGES = new HtmlPolicyBuilder()
DElementAndAttributePolicies.java88 if (HtmlPolicyBuilder.DEFAULT_SKIP_IF_EMPTY.contains(elementName)) { in and()
/external/owasp/sanitizer/src/main/org/owasp/html/examples/
DSlashdotPolicyExample.java36 import org.owasp.html.HtmlPolicyBuilder;
68 POLICY_DEFINITION = new HtmlPolicyBuilder()
DUrlTextExample.java36 import org.owasp.html.HtmlPolicyBuilder;
121 PolicyFactory policyBuilder = new HtmlPolicyBuilder() in run()
DEbayPolicyExample.java36 import org.owasp.html.HtmlPolicyBuilder;
126 public static final PolicyFactory POLICY_DEFINITION = new HtmlPolicyBuilder()