Here you can find the source of unescape(final String source)
public static String unescape(final String source)
//package com.java2s; //License from project: Open Source License public class Main { public static String unescape(final String source) { if (source == null) { return null; }//from w ww.ja va2 s . com String result = source; result = result.replaceAll("&", "&"); result = result.replaceAll(""", "\""); result = result.replaceAll("'", "\'"); result = result.replaceAll("<", "<"); result = result.replaceAll(">", ">"); return result; } }