HttpUtility.EcmaScriptStringLiteralEncode Method (String, TextWriter)
Retrieves an encoded version of the specified JavaScript string and appends it to the specified output stream.
Namespace: Microsoft.SharePoint.Client.Utilities
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Sub EcmaScriptStringLiteralEncode ( _
scriptLiteralToEncode As String, _
output As TextWriter _
)
'Usage
Dim scriptLiteralToEncode As String
Dim output As TextWriterHttpUtility.EcmaScriptStringLiteralEncode(scriptLiteralToEncode, _
output)
public static void EcmaScriptStringLiteralEncode(
string scriptLiteralToEncode,
TextWriter output
)
Parameters
scriptLiteralToEncode
Type: System.StringA String representation of the JavaScript string to encode.
output
Type: System.IO.TextWriterA TextWriter object that represents the output stream in which to append the encoded script.
Remarks
Ecma International develops standards for information and communication systems. For more information, visit http://www.ecma-international.org/.