JSStringFormat()
Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline
JSStringFormat( string=string );
Returns: String
Examples
str = "Bob's comment was ""CFML rocks!""";
writeOutput(str & "<br>");
writeOutput(JSStringFormat(str));
See also
- JavaScript
- Strings
- Formatting
- WriteOutput()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)