Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
PassionPenguin and Josh-Cena authored Dec 31, 2024
1 parent c1cae8b commit f8f1c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/glossary/escaping_text/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ An **escape character** is a {{glossary("character")}} that invokes an alternati

In many programming languages, an escape character also forms some **escape sequences** that has a special meaning rather than the literal characters, marked by one or more preceding characters and possibly terminating characters.

- In {{glossary("JavaScript")}}, we can use the backslash (`\`) to escape characters like `\'`, `\"`, `\u0026`, etc.
- In {{glossary("CSS")}}, we can use the backslash (`\`) to escape characters like `\\`, `\n`, `\26`, etc. See [escaping characters](/en-US/docs/Web/CSS/ident#escaping_characters) for more information.
- In {{glossary("HTML")}}, we can use {{glossary("character reference", "character references")}} like `&lt;`, `&#60;`, or `&#x3C;` to represent the less-than (`<`) symbol.
- In {{glossary("JavaScript")}} [regexes](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_escape), [string literals](/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#string_literals), and [identifiers](/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#identifiers), we can use the backslash (`\`) to escape characters like `\'`, `\"`, `\u0026`, etc.
- In {{glossary("CSS")}} identifiers, we can use the backslash (`\`) to escape characters like `\\`, `\n`, `\26`, etc. See [escaping characters](/en-US/docs/Web/CSS/ident#escaping_characters) for more information.
- In {{glossary("HTML")}} text content and attribute values, we can use {{glossary("character reference", "character references")}} like `&lt;`, `&#60;`, or `&#x3C;`.
- In {{glossary("URL", "URLs")}}, we can use the percent sign (`%`) to escape characters like `%20`, `%3C`, `%3E`, etc.

## See also
Expand Down

0 comments on commit f8f1c9a

Please sign in to comment.