Skip to content

escapeYaml

Escape text for a double-quoted YAML value.

Import:

import { escapeYaml } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-text-utils';

Signature:

function escapeYaml(text: string): string

Parameters:

Parameter Type Description
text string The text to escape.

Returns: string — The escaped text.