escapeJsString
Escape text for use inside a JS string within a JSX expression: {…{key: “…”}}
Import:
import { escapeJsString } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-text-utils';Signature:
function escapeJsString(text: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
text |
string | The text to escape. |
Returns: string — The escaped text.