jsStringFormat

Escapes special JavaScript characters, such as single quotation
mark, double quotation mark, and newline

jsStringFormat(String) → returns string

Argument Reference

String string
Required

Links more information about jsStringFormat

Examples
Sample code invoking the jsStringFormat function

This example illustrates use of the JSStringFormat function.

 string = "An example string value with ""quoted"" 'text'";
 writeOutput(JSStringFormat(string)) ;

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub