Encodes a string to be represented as a string literal. The format is essentially a JSON string.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string EncodeString(
	string s
)
Visual Basic
Public Shared Function EncodeString ( 
	s As String
) As String
Visual C++
public:
static String^ EncodeString(
	String^ s
)
F#
static member EncodeString : 
        s : string -> string 

Parameters

s
Type: System..::..String
String to encode

Return Value

Type: String
Encoded string

See Also