edu.internet2.middleware.grouper.util
Class GrouperHtmlFilter

java.lang.Object
  extended by edu.internet2.middleware.grouper.util.GrouperHtmlFilter
All Implemented Interfaces:
HtmlFilter

public class GrouperHtmlFilter
extends java.lang.Object
implements HtmlFilter

default implementation of html filter


Field Summary
static java.util.Set<java.lang.String> allowedHtml
          allowed html tags
 
Constructor Summary
GrouperHtmlFilter()
           
 
Method Summary
static void allowTag(java.lang.String tag)
          allo tag
static java.lang.String escapeHtml(java.lang.String string)
           
 java.lang.String filterHtml(java.lang.String html)
          filter html from a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowedHtml

public static java.util.Set<java.lang.String> allowedHtml
allowed html tags

Constructor Detail

GrouperHtmlFilter

public GrouperHtmlFilter()
Method Detail

escapeHtml

public static java.lang.String escapeHtml(java.lang.String string)
Parameters:
string -
Returns:
the string

allowTag

public static void allowTag(java.lang.String tag)
allo tag

Parameters:
tag -

filterHtml

public java.lang.String filterHtml(java.lang.String html)
Description copied from interface: HtmlFilter
filter html from a string

Specified by:
filterHtml in interface HtmlFilter
Returns:
the html to filter
See Also:
HtmlFilter.filterHtml(java.lang.String)