Java Utililty Methods String Unescape

List of utility methods to do String Unescape

Description

The list of methods to do String Unescape are organized into topic(s).

Method

StringunescapeText(String s)
change html entities to escape characters (from http://www.rgagnon.com/howto.html)
int i, j, k;
if (s != null && (i = s.indexOf('&')) > -1) {
    j = s.indexOf(';', i);
    if (j > i) {
        String temp = s.substring(i, j + 1);
        k = 0;
        int arraySize = HTML_ESCAPE_CHARS.length;
        while (k < arraySize) {
...
StringunescapeText(String s)
Unescapes character sequences such as '&lt;', '&amp;' etc.
if (s == null) {
    return null;
return s.replace(lt, "<").replace(gt, ">").replace(quote, "\"").replace(amp, "&");