CYBERTOOLS / 0x2E
[SYS_NODE: 0x2E // STRING ESCAPE & UNESCAPE MATRIX]

STRING ESCAPE MATRIX & UNESCAPER

Multi-dialect string codec. Bidirectionally encode or decode escape sequences across JavaScript/JSON string literals (\n, \t, \"), HTML markup entities (&, <), SQL query parameters, and regex metacharacters.

DIALECT:
INPUT STRING
0 chars
TRANSFORMED STREAM
0 chars

      

CHARACTER ESCAPE MECHANICS, LEXICAL PARSING & CODEC PROTOCOLS

Technical specifications for JSON/ECMAScript backslash escapes, XML/HTML character references, SQL string literals, and client privacy.

1. Lexical Escape Dialects

Different runtime environments use distinct syntaxes to represent control codes, quote boundaries, and non-printable characters:

  • JSON & ECMAScript: Uses the reverse solidus (\). Standard escapes include newline (\n), carriage return (\r), horizontal tab (\t), escaped quotes (\"), and hexadecimal unicode points (\uXXXX).
  • HTML Entities: Employs ampersand-terminated entity names or codepoints to prevent Cross-Site Scripting (XSS) and parser corruption. Core entities: &, <, >, ", and '.
  • SQL Literal Quotes: Under standard ANSI SQL, a single quote (') inside a string literal is escaped by doubling it (''). MySQL and PostgreSQL also support backslash escaping depending on standard compliance mode.
1. Airgapped Safety Executed 100% locally in browser memory. Sensitive code snippets, API keys, or SQL statements never touch a remote server.
2. Lossless Unicode Correctly parses high and low surrogate pairs and 4-byte UTF-16 surrogate pairs without string truncation.
3. Instant Swap One-click bidirectional reversal lets you verify decoding accuracy immediately against original source strings.