Skip to content

escape

Escapes special characters in a string.

Import:

import { escape } from 'obsidian-dev-utils/string';

Signature:

function escape($string: string): string

Parameters:

ParameterTypeDescription
$stringstring

Returns: string — The escaped string.