Encodeforjavascript()

Encodes the string to be used inside Javascript. Escapes quotes, and special characters.

Usage

STRING = Encodeforjavascript( string )
Argument Summary
string the string to encode

Calling

Supports named-parameter calling allowing you to use the function like:

Encodeforjavascript(
   string=?
);

Supports passing parameters as a structure using ArgumentCollection:

Encodeforjavascript( ArgumentCollection={
   string : ?
} );