Java tutorial
//package com.java2s; public class Main { public static String htmlDecode(String htmlStr) { String str = htmlStr; str = str.replaceAll("&", "&"); str = str.replaceAll("'", "'"); str = str.replaceAll("'", "'"); str = str.replaceAll(""", "\""); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); return str; } }