Java String Unescape unescapeString(String in)

Here you can find the source of unescapeString(String in)

Description

unescape String

License

Open Source License

Declaration

public static String unescapeString(String in) 

Method Source Code

//package com.java2s;

public class Main {

    public static String unescapeString(String in) {
        if (in == null) {
            return null;
        }/*w ww .  ja  v a 2 s. c  o  m*/
        return in.replace("<br/>", "\n").replace("&nbsp;", " ").replace("&#039;", "\'").replace("&#034;", "\"")
                .replace("&lt;", "<").replace("&gt;", ">");
    }
}

Related

  1. unescape(String x)
  2. unescape(StringBuilder escapedText, int index)
  3. unEscapeString(final String src)
  4. unescapeString(String escapedString)
  5. unescapeString(String iccProfileSrc)
  6. unescapeString(String inp)
  7. unescapeString(String input)
  8. unEscapeString(String input)
  9. unescapeString(String oldstr)