Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline
jsStringFormat(String)
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
String | string | Yes |
This example illustrates use of the JSStringFormat function.
string = "An example string value with ""quoted"" 'text'";
writeOutput(JSStringFormat(string)) ;