Escapes all characters in the input string such that the output is a valid Javascript string. Escaped character are e.g. Carriage Return, Linefeed, Tab, single quote, double quote and backslash.
Syntax
Smartsite SXML | Copy Code |
---|---|
string string.jsencode(string value) |
Parameters
Name | Data Type | Description |
---|---|---|
value | String | The input string that will be Javascript encoded. |
Return Value
Data Type | Description |
---|---|
String | The string with Javascript escaped characters. |