javascriptstring(
STRING
)

The javascriptstring( function converts a text string into a JavaScript string


Parameters

This function has one parameter:

string – text to convert into a JavaScript string.


Description

This function converts text into a JavaScript string literal. To do this the function surrounds the text with double quote characters, and escapes any double quote and/or backslash characters within the text. It also converts carriage returns, line feeds, tabs and vertical tabs into the corresponding backslash equivalents.

javascriptstring({P\E "ratio"}) ☞ "P\\E \"ratio\""

See Also


History

VersionStatusNotes
10.2NewNew in this version.