public static String unescapeFromXML(String string) {
        string = string.replace("&lt;", "<");
        string = string.replace("&gt;", ">");
        string = string.replace("&quot;", "\"");
        return string.replace("&amp;", "&");
    }
Unescapes the String by converting XML escape sequences back into normal
characters.

@param string the string to unescape.
@return the string with appropriate characters unescaped.
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java