Home
last modified time | relevance | path

Searched refs:HtmlLexer (Results 1 – 7 of 7) sorted by relevance

/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlSanitizer.java130 HtmlLexer lexer = new HtmlLexer(html); in sanitize()
147 balancer.closeTag(HtmlLexer.canonicalName( in sanitize()
168 attrs.add(HtmlLexer.canonicalName( in sanitize()
186 HtmlLexer.canonicalName( in sanitize()
DHtmlPolicyBuilder.java203 elementName = HtmlLexer.canonicalName(elementName); in allowElements()
251 elementName = HtmlLexer.canonicalName(elementName); in allowTextIn()
260 elementName = HtmlLexer.canonicalName(elementName); in disallowTextIn()
276 elementName = HtmlLexer.canonicalName(elementName); in allowWithoutAttributes()
291 elementName = HtmlLexer.canonicalName(elementName); in disallowWithoutAttributes()
304 b.add(HtmlLexer.canonicalName(attributeName)); in allowAttributes()
738 b.add(HtmlLexer.canonicalName(elementName));
DHtmlStreamRenderer.java178 name = HtmlLexer.canonicalName(name); in writeOpenTag()
225 elementName = HtmlLexer.canonicalName(elementName); in writeCloseTag()
372 elementName = HtmlLexer.canonicalName(elementName); in safeName()
DHtmlLexer.java46 final class HtmlLexer extends AbstractTokenStream { class
51 public HtmlLexer(String input) { in HtmlLexer() method in HtmlLexer
697 return HtmlLexer.canonicalName(input.substring(start, end)); in canonicalName()
DTagBalancingHtmlStreamEventReceiver.java79 String canonElementName = HtmlLexer.canonicalName(elementName); in openTag()
142 String canonElementName = HtmlLexer.canonicalName(elementName); in closeTag()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlLexerTest.java125 HtmlLexer lexer = new HtmlLexer(input); in lex()
149 HtmlLexer lexer = new HtmlLexer(markup); in assertTokens()
Dhtmllexergolden1.txt5 COMMENT [<!-- a test input for HtmlLexer -->] : 99-134
15 TEXT [Test File For HtmlLexer &amp; HtmlParser] : 157-197