JSStringFormat
Last updated
Was this helpful?
Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline
JSStringFormat(string=[string])string
string
true
The string to escape.
This example illustrates use of the JSStringFormat function.
string = "An example string value with ""quoted"" 'text'";
writeOutput( JSStringFormat( string ) );
Last updated
Was this helpful?
Was this helpful?
str = "Bob's comment was ""BL rocks!""";
writeOutput( str & "<br>" );
writeOutput( JSStringFormat( str ) );
