Java XML Unescape unescapeXml(String str)

Here you can find the source of unescapeXml(String str)

Description

unescape Xml

License

Open Source License

Declaration

public static String unescapeXml(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static String unescapeXml(String str) {
        str = str.replaceAll("&", "&");
        str = str.replaceAll("&lt;", "<");
        str = str.replaceAll("&gt;", ">");
        str = str.replaceAll("&quot;", "\"");
        str = str.replaceAll("&apos;", "'");
        return str;
    }//  www  . ja v a 2s.  c o m
}

Related

  1. unescapeXml(String input)
  2. unescapeXml(String input)
  3. unescapeXML(String s)
  4. unescapeXml(String src)
  5. unescapeXML(String str)
  6. unescapeXml(String str)
  7. unescapeXML(String text)
  8. unescapeXML(String text)
  9. unescapeXml(String value)