org.utgenome.gwt.utgb.server.util.xml
Class HTMLContentFilter

java.lang.Object
  extended by org.utgenome.gwt.utgb.server.util.xml.HTMLContentFilter
All Implemented Interfaces:
TextContentFilter

public class HTMLContentFilter
extends Object
implements TextContentFilter

Removes illegal characters that cannot be used as XML text contents into entity references.

Author:
leo

Constructor Summary
HTMLContentFilter()
           
 
Method Summary
 String filter(String content)
          replaces &, <, >, ", ' characters into corresponding entity references
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLContentFilter

public HTMLContentFilter()
Method Detail

filter

public String filter(String content)
replaces &, <, >, ", ' characters into corresponding entity references

Specified by:
filter in interface TextContentFilter
Parameters:
content - the conversion target string
Returns:


Copyright © 2007-2012 utgenome.org. All Rights Reserved.