JavascriptEncode

The JavascriptEncode() function encodes the given value to a Javascript literal.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Syntax

JavascriptEncode(value)

JavascriptEncode("\"Line 1\"\n'Line 2';") => "\"Line 1\"\n\'Line 2\';"

Parameters

Name
Type
Required
Description

value

any WEM value

☑️

see hint below

Last updated

Was this helpful?