Here you can find the source of replaceEscape(String result)
private static String replaceEscape(String result)
//package com.java2s; public class Main { private static String replaceEscape(String result) { if (result == null) { return ""; }/*w w w . j a va 2 s.c o m*/ // Replace XML escape characters result = result.replace("\\n", "\n"); result = result.replace("'", "'"); result = result.replace(""", "\""); result = result.replace("apos;", "'"); result = result.replace("quot;", "\""); result = result.replace("<", "<"); result = result.replace(">", ">"); result = result.replace("&", ""); return result; } }