Here you can find the source of unescape(String value)
Parameter | Description |
---|---|
value | escaped string |
public static String unescape(String value)
//package com.java2s; //License from project: LGPL public class Main { /**// w ww . jav a 2 s .com * Reverse the escaping of the control characters to get the original string. * @param value escaped string * @return original string */ public static String unescape(String value) { if (value == null) { return value; } if (value.length() == 0) { return value; } return value.replace(">", ">").replaceAll("<", "<").replaceAll("&", "&"); } }