Lucee Function Reference

jsstringformat()

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

Example

jsstringformat(string string):string

Category

javascript,string,formatting

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes A string or a variable that contains one.