In This Topic
Given a string, produce the contents of a JavaScript string literal
with single-quote and double-quote characters back-slashified,
surrounded by single quote marks.
Syntax
Parameters
- s
Return Value
a string containing a JavaScript string literal surrounded by single quote marks
See Also