/
Escape sequences

Escape sequences

For any text format that uses special characters we face the problem of how to express those characters when the data we have includes those special characters. This is general problem in computer science that leads to the idea of escape sequences.

This is a special sequence of characters which we use to represent these characters.

For instance in HTML < > and & are special characters which are expressed using the escape sequences we call HTML entities.

Forgetting to escape characters in the right context is a common source of bugs in programs.

Related content

HTML Entities for special characters
HTML Entities for special characters
More like this
How does Google deal with Shell Apps?
How does Google deal with Shell Apps?
Read with this
Unescaped special characters can break applications
Unescaped special characters can break applications
More like this
Understanding File paths
Understanding File paths
Read with this
HTML is intended to be a simple markup language for humans to write documents and share them
HTML is intended to be a simple markup language for humans to write documents and share them
More like this
How to use the class attribute of HTML elements.
How to use the class attribute of HTML elements.
Read with this