Java String Unescape unEscape(String s)

Here you can find the source of unEscape(String s)

Description

un Escape

License

Open Source License

Declaration

public static String unEscape(String s) 

Method Source Code

//package com.java2s;
// Lesser General Public License as published by the Free Software Foundation.

public class Main {
    public static String unEscape(String s) {
        String value = s;/*from   www .  j  ava  2  s . co m*/
        value = value.replaceAll("&lt;", "<");
        value = value.replaceAll("&gt;", ">");
        value = value.replaceAll("&amp;", "&");
        value = value.replaceAll("&quot;", "\"");
        value = value.replaceAll("&apos;", "'");
        return value;
    }
}

Related

  1. unescape(String original, char[] spec)
  2. unescape(String property)
  3. unescape(String quoted)
  4. unescape(String s)
  5. unescape(String s)
  6. unescape(String s)
  7. unescape(String s)
  8. unescape(String s)
  9. Unescape(String s)