Package org.owasp.html
Interface HtmlStreamEventReceiver
-
- All Known Subinterfaces:
HtmlSanitizer.Policy
- All Known Implementing Classes:
HtmlStreamEventReceiverWrapper
,HtmlStreamRenderer
,TagBalancingHtmlStreamEventReceiver
public interface HtmlStreamEventReceiver
A light-weight SAX-like listener for HTML.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeDocument()
Called first to indicate that no more events will be received.void
closeTag(String elementName)
Called to specify an end tag like</elementName>
.void
openDocument()
Called first to indicate that events follow.void
openTag(String elementName, List<String> attrs)
Called to specify a tag with the given name and attributes.void
text(String text)
Called to specify a text node.
-
-
-
Method Detail
-
openDocument
void openDocument()
Called first to indicate that events follow.
-
closeDocument
void closeDocument()
Called first to indicate that no more events will be received.
-
openTag
void openTag(String elementName, List<String> attrs)
Called to specify a tag with the given name and attributes.- Parameters:
attrs
- alternating attribute names and values.
-
closeTag
void closeTag(String elementName)
Called to specify an end tag like</elementName>
.
-
text
void text(String text)
Called to specify a text node.
-
-