Home
last modified time | relevance | path

Searched refs:allowAttributes (Results 1 – 13 of 13) sorted by relevance

/external/owasp/sanitizer/src/main/org/owasp/html/examples/
DEbayPolicyExample.java127 .allowAttributes("id").matching(HTML_ID).globally()
128 .allowAttributes("class").matching(HTML_CLASS).globally()
129 .allowAttributes("lang").matching(Pattern.compile("[a-zA-Z]{2,20}"))
131 .allowAttributes("title").matching(HTML_TITLE).globally()
133 .allowAttributes("align").matching(ALIGN).onElements("p")
134 .allowAttributes("for").matching(HTML_ID).onElements("label")
135 .allowAttributes("color").matching(COLOR_NAME_OR_COLOR_CODE)
137 .allowAttributes("face")
140 .allowAttributes("size").matching(NUMBER).onElements("font")
141 .allowAttributes("href").matching(ONSITE_OR_OFFSITE_URL)
[all …]
DSlashdotPolicyExample.java71 .allowAttributes("title").globally()
73 .allowAttributes("href").onElements("a")
77 .allowAttributes("lang").matching(Pattern.compile("[a-zA-Z]{2,20}"))
80 .allowAttributes("align")
DUrlTextExample.java122 .allowAttributes("src").onElements("img") in run()
123 .allowAttributes("href").onElements("a") in run()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlPolicyBuilderTest.java135 .allowAttributes("href").onElements("a"))); in testLinksAllowed()
155 .allowAttributes("href").onElements("a"))); in testExternalLinksAllowed()
173 .allowAttributes("href").onElements("a") in testLinksWithNofollow()
192 .allowAttributes("src", "alt").onElements("img") in testImagesAllowed()
257 .allowAttributes("src", "alt").onElements("img") in testAllowUrlProtocols()
268 .allowAttributes("href").onElements("a") in testPossibleFalloutFromIssue5()
DSanitizersTest.java102 .allowAttributes("href", "title").onElements("a") in testAndIntersects()
199 .allowAttributes("href").onElements("a") in testExplicitlyAllowedProtocolsAreCaseInsensitive()
240 .allowAttributes("align").matching(true, "left", "center", "right") in testIssue9StylesInTables()
242 .allowAttributes("size").onElements("font", "img") in testIssue9StylesInTables()
272 .allowAttributes("disabled").onElements("textarea") in testSkipIfEmptyUnionsProperly()
DAntiSamyTest.java74 .allowAttributes("checked", "type").onElements("input") in makePolicy()
75 .allowAttributes("color").onElements("font") in makePolicy()
76 .allowAttributes("href").onElements("a") in makePolicy()
77 .allowAttributes("src").onElements("img") in makePolicy()
78 .allowAttributes("class", "id", "title").globally() in makePolicy()
79 .allowAttributes("char").matching( in makePolicy()
DHtmlPolicyBuilderFuzzerTest.java61 .allowAttributes("href").onElements("a")
62 .allowAttributes("title").globally()
DHtmlSanitizerTest.java359 .allowAttributes( in sanitize()
364 .allowAttributes("id", "class") in sanitize()
DBenchmark.java190 .allowAttributes("href").onElements("a"); in sanitizeUsingPolicyBuilder()
/external/owasp/sanitizer/src/main/org/owasp/html/
DSanitizers.java79 .allowAttributes("href").onElements("a").requireRelNofollowOnLinks()
105 .allowAttributes("alt", "src").onElements("img")
106 .allowAttributes("border", "height", "width").matching(INTEGER)
DHtmlPolicyBuilder.java301 public AttributeBuilder allowAttributes(String... attributeNames) { in allowAttributes() method in HtmlPolicyBuilder
319 return this.allowAttributes(attributeNames) in disallowAttributes()
/external/llvm-project/mlir/include/mlir/IR/
DFunctionImplementation.h57 OpAsmParser &parser, bool allowAttributes, bool allowVariadic,
/external/llvm-project/mlir/lib/IR/
DFunctionImplementation.cpp17 OpAsmParser &parser, bool allowAttributes, bool allowVariadic, in parseFunctionArgumentList() argument
59 if (!allowAttributes && !attrs.empty()) in parseFunctionArgumentList()