com.google.clearsilver.jsilver.functions.html
Class TextHtmlFunction

java.lang.Object
  extended by com.google.clearsilver.jsilver.functions.html.TextHtmlFunction
All Implemented Interfaces:
TextFilter

public class TextHtmlFunction
extends Object
implements TextFilter

This class implements the ClearSilver text_html function. It converts plain text into html, including adding 'tt' tags to ascii art and linking email and web addresses. Note this implementation differs from ClearSilver, in that it html escapes the contents of links and mailtos.


Constructor Summary
TextHtmlFunction()
           
 
Method Summary
 void filter(String in, Appendable out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextHtmlFunction

public TextHtmlFunction()
Method Detail

filter

public void filter(String in,
                   Appendable out)
            throws IOException
Specified by:
filter in interface TextFilter
Throws:
IOException


Copyright © 2010-2012 Google. All Rights Reserved.