Searched refs:HtmlPolicyBuilder (Results 1 – 12 of 12) sorted by relevance
67 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 …]
99 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()
182 private static HtmlPolicyBuilder policyBuilder;187 policyBuilder = new HtmlPolicyBuilder() in sanitizeUsingPolicyBuilder()
59 = new HtmlPolicyBuilder()
353 HtmlSanitizer.Policy policy = new HtmlPolicyBuilder() in sanitize()
70 return new HtmlPolicyBuilder() in makePolicy()
155 public class HtmlPolicyBuilder { class180 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 …]
58 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()
88 if (HtmlPolicyBuilder.DEFAULT_SKIP_IF_EMPTY.contains(elementName)) { in and()
36 import org.owasp.html.HtmlPolicyBuilder;68 POLICY_DEFINITION = new HtmlPolicyBuilder()
36 import org.owasp.html.HtmlPolicyBuilder;121 PolicyFactory policyBuilder = new HtmlPolicyBuilder() in run()
36 import org.owasp.html.HtmlPolicyBuilder;126 public static final PolicyFactory POLICY_DEFINITION = new HtmlPolicyBuilder()