Top "Escaping" questions

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

How to get a Char from an ASCII Character Code in c#

Im trying to parse a file in c# that has field (string) arrays separated by ascii character codes 0, 1 and 2 (in …

c# character-encoding ascii escaping
Convert XmlDocument to String

Here is how I'm currently converting XMLDocument to String StringWriter stringWriter = new StringWriter(); XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter); xmlDoc.WriteTo(…

c# string escaping quotes xmldocument
Java - escape string to prevent SQL injection

I'm trying to put some anti sql injection in place in java and am finding it very difficult to work …

java sql regex escaping sql-injection
How do I properly escape quotes inside HTML attributes?

I have a drop down on a web page which is breaking when the value string contains a quote. The …

html xhtml escaping
Escape @ character in razor view engine

I am creating a sample ASP.NET MVC 3 site using Razor as view engine. The razor syntax starts with @ character …

asp.net-mvc-3 razor escaping
How to escape indicator characters (i.e. : or - ) in YAML

In a config file, I have a key to which I wish to assign a URL. The problem is that …

escaping yaml delimiter
Unrecognized escape sequence for path string containing backslashes

The following code generates a compiler error about an "unrecognized escape sequence" for each backslash: string foo = "D:\Projects\Some\…

c# .net string path escaping
Why shouldn't `'` be used to escape single quotes?

As stated in, When did single quotes in HTML become so popular? and Jquery embedded quote in attribute, the Wikipedia …

html escaping quotes
How can I insert new line/carriage returns into an element.textContent?

As silly as it may sound, I still haven't found an appropriate answer. Let's say I want to dynamically create …

javascript string escaping carriage-return
How to use a variable inside a regular expression?

I'd like to use a variable inside a regex, how can I do this in Python? TEXTO = sys.argv[1] if …

python regex python-3.x variables escaping