com.goodeast.webobjects.switchablestring
Class SSAllowedTagsFilter

java.lang.Object
  |
  +--com.goodeast.webobjects.switchablestring.SSHTMLFilter
        |
        +--com.goodeast.webobjects.switchablestring.SSAllowedTagsFilter

public class SSAllowedTagsFilter
extends SSHTMLFilter

Checks tags against an allowed list. If the tag is on the allowed list it is not escaped, otherwise it is escaped.


Nested Class Summary
 
Nested classes inherited from class com.goodeast.webobjects.switchablestring.SSHTMLFilter
SSHTMLFilter.Factory
 
Method Summary
 boolean tagShouldBeEscaped(java.lang.String tag)
          Returns true if tag is not in the allowed list.
 
Methods inherited from class com.goodeast.webobjects.switchablestring.SSHTMLFilter
filterForAllowedHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tagShouldBeEscaped

public boolean tagShouldBeEscaped(java.lang.String tag)
Returns true if tag is not in the allowed list.

Specified by:
tagShouldBeEscaped in class SSHTMLFilter
Parameters:
tag - Tag to be checked
Returns:
True if tag should be escaped, false otherwise