public static String unescapeSpecialCharacters(String text){
  text=text.replaceAll("&amp;","&");
  text=text.replaceAll("&lt;","<");
  text=text.replaceAll("&gt;",">");
  text=text.replaceAll("&quot;","\"");
  text=text.replaceAll("&apos;","'");
  text=text.replaceAll("&#xA;","\n");
  text=text.replaceAll("&#xD;","\r");
  return text;
}

public static String unescapeSpecialCharacters ( String text ) { text = text . replaceAll ( "&amp;" , "&" ) ; text = text . replaceAll ( "&lt;" , "<" ) ; text = text . replaceAll ( "&gt;" , ">" ) ; text = text . replaceAll ( "&quot;" , "\"" ) ; text = text . replaceAll ( "&apos;" , "'" ) ; text = text . replaceAll ( "&#xA;" , "\n" ) ; text = text . replaceAll ( "&#xD;" , "\r" ) ; return text ; }
returns unescape special character text .
