Skip to content

escape

Escapes special characters in a string.

Import:

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

Signature:

function escape(str: string): string

Parameters:

ParameterTypeDescription
strstringThe string to escape.

Returns: string — The escaped string.