com.google.clearsilver.jsilver.functions.html
Class TextHtmlFunction
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextHtmlFunction
public TextHtmlFunction()
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.