Escapes a string to be included into JavaScript string literal.
Handles all kinds of quotes (', ", and ```) and special chars. Converts non-ASCII chars to corresponding Unicode escapes.
'
"
A string to escape.
Escaped string.
Generated using TypeDoc
Escapes a string to be included into JavaScript string literal.
Handles all kinds of quotes (
'
,"
, and ```) and special chars. Converts non-ASCII chars to corresponding Unicode escapes.