Here you can find the source of replaceEscapeSequence(String input)
public static String replaceEscapeSequence(String input)
//package com.java2s; public class Main { public static String replaceEscapeSequence(String input) { String output = null;/* ww w . ja v a 2s . com*/ if (input != null) { output = input.replaceAll("<", "<"); output = output.replaceAll(">", ">"); output = output.replaceAll("&", "&"); output = output.replaceAll("'", "??"); output = output.replaceAll(""", "\""); } return output; } }