Top "Escaping" questions

Escaping is the process of applying an alternate meaning to a character or set of characters.

Escape quotes in JavaScript

I'm outputting values from a database (it isn't really open to public entry, but it is open to entry by …

javascript quotes escaping
How to enter quotes in a Java string?

I want to initialize a String in Java, but that string needs to include quotes; for example: "ROM". I tried …

java string quotes escaping
Escape Character in SQL Server

I want to use quotation with escape character. How can I do? I have received error in SQL Server Unclosed …

sql-server escaping char
Can I escape a double quote in a verbatim string literal?

In a verbatim string literal (@"foo") in C#, backslashes aren't treated as escapes, so doing \" to get a double quote …

c# string escaping literals verbatim-string
How should I escape strings in JSON?

When creating JSON data manually, how should I escape string fields? Should I use something like Apache Commons Lang's StringEscapeUtilities.…

java json escaping
Saving utf-8 texts in json.dumps as UTF8, not as \u escape sequence

sample code: >>> import json >>> json_string = json.dumps("ברי צקלה") >>> print json_string "\…

python json unicode utf-8 escaping
How can I selectively escape percent (%) in Python strings?

I have the following code test = "have it break." selectiveEscape = "Print percent % in sentence and not %s" % test print(selectiveEscape) …

python escaping python-2.7
Which characters need to be escaped when using Bash?

Is there any comprehensive list of characters that need to be escaped in Bash? Can it be checked just with …

bash shell unix escaping special-characters
How to escape a JSON string containing newline characters using JavaScript?

I have to form a JSON string in which a value is having new line character. This has to be …

javascript escaping
Recommended method for escaping HTML in Java

Is there a recommended way to escape <, >, " and & characters when outputting HTML in plain Java code? (Other …

java html escaping