Quote the specified text.
Encloses the text in double quotes and escapes any backslashes and double-quotes within it.
Text to quote.
The quoted text.
text is null or undefined.
text
Quote the specified text.
Encloses the text in double quotes and escapes any backslashes and double-quotes within it.