encodeForJavaScript
10
4

Overview ColdFusion Open BlueDragon Lucee

Encodes the given string. Returns the encoded string which can be used in javascript context. jsencoder is used for encoding

Attributes

Name Required Type Default Description
11
canonicalize No Boolean Whether to do canonicalization before encoding
10
inputstring Yes String String to encode
10
strict No Boolean If set to true will restrict multiple and mixed encoding
4
string No string to encode