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–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.