Here you can find the source of htmlDecode(String strSrc)
public static String htmlDecode(String strSrc)
//package com.java2s; //License from project: Open Source License public class Main { public static String htmlDecode(String strSrc) { if (strSrc == null) { return ""; }/* w w w . j a va 2s . co m*/ strSrc = strSrc.replaceAll("<", "<"); strSrc = strSrc.replaceAll(">", ">"); strSrc = strSrc.replaceAll(""", "\""); strSrc = strSrc.replaceAll("'", "'"); strSrc = strSrc.replaceAll("&", "&"); return strSrc; } }