List of utility methods to do XML Unescape
String | unescapedKeyNameXml(final String name) unescaped Key Name Xml return name.replace(MARKER, COLON);
|
String | unescapeForXML(String string) Given a string, replace all the instances of XML entities with their corresponding XML special characters. string = substitute(string, "&", "&"); string = substitute(string, """, "\""); string = substitute(string, "<", "<"); string = substitute(string, ">", ">"); string = substitute(string, " ", "\n"); string = substitute(string, " ", "\r"); return string; |
String | unescapeFromXml(String escapedString) Un-escape a string from its XML encoding - in particular, un-escape &, <, >, ", and hex encoded characters. StringBuffer string = new StringBuffer(); for (int c = 0; c < escapedString.length();) { char ch = escapedString.charAt(c); if (ch == '&') { if (escapedString.startsWith("amp;", (c + 1))) { string.append('&'); c += 5; } else if (escapedString.startsWith("lt;", (c + 1))) { ... |
String | unescapeFromXML(String st) unescape From XML st = st.replace("&", "&"); st = st.replace("'", "'"); st = st.replace("<", "<"); st = st.replace(">", ">"); st = st.replace(""", "\""); return st; |
String | unescapeFromXML(String string) Unescapes the String by converting XML escape sequences back into normal characters. string = replace(string, "<", "<"); string = replace(string, ">", ">"); string = replace(string, """, "\""); return replace(string, "&", "&"); |
String | unescapeFromXML(String string) unescape From XML string = replace(string, "<", "<"); string = replace(string, ">", ">"); string = replace(string, """, "\""); return replace(string, "&", "&"); |
String | unescapeFromXML(String string) Unescapes the String by converting XML escape sequences back into normal characters. string = replace(string, "<", "<"); string = replace(string, ">", ">"); string = replace(string, """, "\""); return replace(string, "&", "&"); |
String | unescapeFromXML(String string) Unescapes the String by converting XML escape sequences back into normal characters. string = replace(string, "<", "<"); string = replace(string, ">", ">"); string = replace(string, """, "\""); return replace(string, "&", "&"); |
String | unescapeXML(final String s) Unescapes a String, replacing nn;, <, >, &, ", and &apos to the corresponding characters. char[] cc = s.toCharArray(); int len = cc.length; StringBuffer sb = new StringBuffer(); int pos; String esc; for (int i = 0; i < len; i++) { int c = cc[i]; if (c == '&') { ... |
String | unescapeXml(String input) unescape Xml if (input == null) { return null; return translateAll(input, encoded, decoded_origin); |