src/main/java/org/jsoup/parser/TokenQueue.java
/**
     * Unescape a \ escaped string.
     * @param in backslash escaped string
     * @return unescaped string
     */
Unescape a \ escaped string.
@param in backslash escaped string
@return unescaped string
Unescape a \ escaped string . @param in backslash escaped string @return unescaped string
public static String unescape(String in) {
        StringBuilder out = StringUtil.borrowBuilder();
        char last = 0;
        for (char c : in.toCharArray()) {
            if (c == ESC) {
                if (last == ESC)
                    out.append(c);
            }
            else 
                out.append(c);
            last = c;
        }
        return StringUtil.releaseBuilder(out);
    }
public static String unescape ( String in ) { StringBuilder out = StringUtil . borrowBuilder ( ) ; char last = 0 ; for ( char c : in . toCharArray ( ) ) { if ( c == ESC ) { if ( last == ESC ) out . append ( c ) ; } else out . append ( c ) ; last = c ; } return StringUtil . releaseBuilder ( out ) ; }
Unescape a \ escaped string.
Unescape a \ escaped string .