String Escape/Unescape
Local processingJSON
Input
Output (JSON)
Escape Types
JSONEscape for JSON strings
XMLEscape for XML content
HTMLEscape HTML entities
JavaScriptEscape for JS strings
SQLEscape for SQL queries
CSVEscape for CSV fields
Java/.NETEscape for Java/C# strings
Common Escape Sequences
| Char | Escaped | Description |
|---|---|---|
\n | \\n | Newline |
\t | \\t | Tab |
\r | \\r | Carriage return |
" | \" | Double quote |
' | \' | Single quote |
\ | \\ | Backslash |
< | < | Less than (HTML/XML) |
> | > | Greater than (HTML/XML) |
& | & | Ampersand (HTML/XML) |