Here you can find the source of unescapeHTML(String html)
Parameter | Description |
---|---|
html | a parameter |
public static String unescapeHTML(String html)
//package com.java2s; //License from project: Open Source License public class Main { /**/* www. j av a 2 s. c o m*/ * Given escaped html characters, unescapes them. For instance, turning * &lt; into < * <!-- for those reading the javadoc directly in code, that's: --> * <!-- < into < --> * @param html * @return */ public static String unescapeHTML(String html) { return html.replace("'", "'").replace(""", "\"").replace(">", ">").replace("<", "<") .replace("&", "&"); } }