| java.lang.Object com.opensymphony.webwork.views.util.TextUtil
TextUtil | public class TextUtil (Code) | | This class handles HTML escaping of text.
It was written and optimized to be as fast as possible.
author: Dick Zetterberg (dick@transitor.se) version: $Revision: 1282 $ |
MAX_LENGTH | final protected static int MAX_LENGTH(Code) | | |
_stringChars | final protected static char[][] _stringChars(Code) | | We use arrays of char in the lookup table because it is faster
appending this to a StringBuffer than appending a String
|
escapeHTML | final public static String escapeHTML(String s, boolean escapeEmpty)(Code) | | Escape HTML.
Parameters: s - string to be escaped Parameters: escapeEmpty - if true, then empty string will be escaped. |
initMapping | protected static void initMapping()(Code) | | |
|
|