Java tutorial
//package com.java2s; public class Main { public static String unEscape(String s) { if (s == null) { return s; } return s.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("'", "'") .replaceAll(""", "\""); } }