Here you can find the source of unescape(String text)
Parameter | Description |
---|---|
text | to unescape |
public static String unescape(String text)
//package com.java2s; public class Main { /**//from www . j a v a2 s . c o m * Unescaping some chars and symbols * @param text to unescape * @return unescaped string */ public static String unescape(String text) { return text.replace("&", "&").replace(""", "\"") .replace("<br>", "\n").replace(">", ">") .replace("<", "<").replace("'", "'") .replace("<br/>", "\n").replace("–", "-") .replace("!", "!").trim(); } }