Here you can find the source of unEscape(String value)
Parameter | Description |
---|---|
value | value to unescape. |
public static String unEscape(String value)
//package com.java2s; // are made available under the terms of the Eclipse Public License v1.0 public class Main { /**/*from ww w .j ava2 s .co m*/ * Unescapes the string by replacing some XML entities into plain symbols. * * @param value value to unescape. * @return unescaped content. */ public static String unEscape(String value) { value = value.replaceAll("<", "<"); value = value.replaceAll(">", ">"); value = value.replaceAll("&", "&"); value = value.replaceAll(""", "\""); value = value.replaceAll("'", "'"); return value; } }