Java String Quote Unescape unescapePhpSingleQuotedStringContent(String escapedContent)

Here you can find the source of unescapePhpSingleQuotedStringContent(String escapedContent)

Description

unescape Php Single Quoted String Content

License

Apache License

Declaration

static String unescapePhpSingleQuotedStringContent(String escapedContent) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final char CHAR_BACKSLASH = '\\';
    public static final char CHAR_SINGLE_QUOTE = '\'';

    static String unescapePhpSingleQuotedStringContent(String escapedContent) {
        return escapedContent.replace("\\\\", Character.toString(CHAR_BACKSLASH)).replace("\\'",
                Character.toString(CHAR_SINGLE_QUOTE));
    }//from   ww w.j a v  a  2 s.c o m
}

Related

  1. unescape(CharSequence string, int quoteChar, boolean useAsciiEscapes, StringBuilder sb)
  2. unescapeDoubleQuote(String string)
  3. unescapeDoubleQuote(String stringToReplace)
  4. unescapeDoubleQuotes(String string)
  5. unescapeDoubleQuotesAndBackslashes(final String input)
  6. unescapeQuote(String src)
  7. unEscapeQuotedComma(String str)
  8. unescapeQuotes(final String text)
  9. unescapeQuotes(final String text)