Here you can find the source of unescapeHTML(String value)
public static String unescapeHTML(String value)
//package com.java2s; // Released under the terms of the CPL Common Public License version 1.0. public class Main { private static final String[] specialHtmlChars = new String[] { "&", "<", ">" }; private static final String[] specialHtmlEscapes = new String[] { "&", "<", ">" }; public static String unescapeHTML(String value) { return replaceStrings(value, specialHtmlEscapes, specialHtmlChars); }// ww w. j a v a2 s.c o m private static String replaceStrings(String value, String[] originalStrings, String[] replacementStrings) { String result = value; for (int i = 0; i < originalStrings.length; i++) if (result.contains(originalStrings[i])) result = result.replace(originalStrings[i], replacementStrings[i]); return result; } }