Click or drag to resize
Json.NET

StringEscapeHandling Enumeration

 
Specifies how strings are escaped when writing JSON text.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 11.0.1
Syntax
C#
public enum StringEscapeHandling
Members
  Member nameValueDescription
Default0 Only control characters (e.g. newline) are escaped.
EscapeNonAscii1 All non-ASCII and control characters (e.g. newline) are escaped.
EscapeHtml2 HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
See Also