Ext.EncodeJavaScript()

Escapes JavaScript values in a string.

Function Signature

 string Ext.EncodeJavaScript( value )

Parameters

Parameter Type Description

value

string

The text that may have JavaScript characters that need to be escaped.

Return

Type Description

string

The JavaScript-encoded version of the string value.

Technical Details

SBM ModScript version: 11.3.

Example

Ext.WriteStream( Ext.EncodeJavaScript( "a < b" ));

Notes

None.

Related Topics

Extension Functions