| StringEscapeHandling Enumeration |
Specifies how strings are escaped when writing JSON text.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax public enum StringEscapeHandling
Members
| Member name | Value | Description |
---|
| Default | 0 |
Only control characters (e.g. newline) are escaped.
|
| EscapeNonAscii | 1 |
All non-ASCII and control characters (e.g. newline) are escaped.
|
| EscapeHtml | 2 |
HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
|
See Also