Here you can find the source of unEscape(String s)
public static String unEscape(String s)
//package com.java2s; // Lesser General Public License as published by the Free Software Foundation. public class Main { public static String unEscape(String s) { String value = s;/*from www . j ava 2 s . co m*/ value = value.replaceAll("<", "<"); value = value.replaceAll(">", ">"); value = value.replaceAll("&", "&"); value = value.replaceAll(""", "\""); value = value.replaceAll("'", "'"); return value; } }