Here you can find the source of unescapeHTMLEntities(String source)
public static String unescapeHTMLEntities(String source)
//package com.java2s; import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class Main { private final static Map<String, String> htmlEntities = new HashMap<String, String>(); public static String unescapeHTMLEntities(String source) { Iterator<String> it = htmlEntities.keySet().iterator(); while (it.hasNext()) { String key = it.next(); String val = htmlEntities.get(key); source = source.replaceAll(key, val); }/*from w w w. j a v a 2s .c om*/ return source; } }