SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.EncodeJavaScript()
Escapes JavaScript values in a string.
Parameter | Type | Description |
---|---|---|
value |
string |
The text that may have JavaScript characters that need to be escaped. |
Type | Description |
---|---|
string |
The JavaScript-encoded version of the string value. |
SBM ModScript version: 11.3.
Ext.WriteStream( Ext.EncodeJavaScript( "a < b" ));
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.