code.google.com home

org.owasp.html
Interface HtmlChangeListener<T>


public interface HtmlChangeListener<T>

Receives events when an HTML tag, or attribute is discarded. This can be hooked into an intrusion detection system to alert code when suspicious HTML passes through the sanitizer.


Method Summary
 void discardedAttributes(T context, java.lang.String tagName, java.lang.String... attributeNames)
          Called when attributes are discarded from the input but the containing tag is not.
 void discardedTag(T context, java.lang.String elementName)
          Called when a tag is discarded from the input.
 

Method Detail

discardedTag

void discardedTag(@Nullable
                  T context,
                  java.lang.String elementName)
Called when a tag is discarded from the input.


discardedAttributes

void discardedAttributes(@Nullable
                         T context,
                         java.lang.String tagName,
                         java.lang.String... attributeNames)
Called when attributes are discarded from the input but the containing tag is not.


code.google.com home