EncodeForJavaScript()
Encodes the given string for safe output in JavaScript to stop Cross Site Scripting attacks.
Requires Extension: ESAPI extension
EncodeForJavaScript( string=string, canonicalize=boolean );
Returns: String
Examples
There are currently no examples for this function.
See also
- Encode/Decode
- JavaScript
- string.encodeForJavascript()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)