| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Utility class for HTML escaping and unescaping. Based on code from com.purpletech.util.Utils, written by Alex Chaffee.
Reference: http://hotwired.lycos.com/webmonkey/reference/special_characters/
| Method Summary | |
static String | htmlEscape(String source)Turns funky characters into HTML entity equivalents. |
static String | htmlUnescape(String source)Reverses htmlEscape. |
| Method Detail |
public static String htmlEscape(String source)
E.g. "bread" & "butter" => "bread" & "butter"
Update: supports nearly all HTML entities, including funky accents. See the source code for more detail.
public static String htmlUnescape(String source)
| Association Links |
to Class java.util.Map
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||