Package org.owasp.html
Interface HtmlStreamEventReceiver
-
- All Known Subinterfaces:
HtmlSanitizer.Policy
- All Known Implementing Classes:
HtmlStreamEventReceiverWrapper,HtmlStreamRenderer,TagBalancingHtmlStreamEventReceiver
public interface HtmlStreamEventReceiverA light-weight SAX-like listener for HTML.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseDocument()Called first to indicate that no more events will be received.voidcloseTag(String elementName)Called to specify an end tag like</elementName>.voidopenDocument()Called first to indicate that events follow.voidopenTag(String elementName, List<String> attrs)Called to specify a tag with the given name and attributes.voidtext(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.
-
-