| java.lang.Object org.ejbca.util.HTMLTools
HTMLTools | public class HTMLTools (Code) | | |
htmlescape | public static String htmlescape(String s1)(Code) | | Turns funky characters into HTML entity equivalents
e.g. "bread" & "butter" => "bread" & "butter".
Update: supports nearly all HTML entities, including funky accents. See the source code for more detail.
See Also: HTMLTools.htmlunescape(String) |
htmlunescape | public static String htmlunescape(String s1)(Code) | | Given a string containing entity escapes, returns a string
containing the actual Unicode characters corresponding to the
escapes.
Note: nasty bug fixed by Helge Tesgaard (and, in parallel, by
Alex, but Helge deserves major props for emailing me the fix).
15-Feb-2002 Another bug fixed by Sean Brown
See Also: HTMLTools.htmlescape(String) |
|
|