HttpUtility::JavaScriptStringEncode Method (String^)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Encodes a string.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
static String^ JavaScriptStringEncode(
	String^ value
)

Parameters

value
Type: System::String^

A string to encode.

Return Value

Type: System::String^

An encoded string.

.NET Framework
Available since 4.0
Return to top
Show: