Escapes special characters in a string.
Import:
import { escape } from 'obsidian-dev-utils/string';
Signature:
function escape(str: string): string
Parameters:
| Parameter | Type | Description |
|---|
str | string | The string to escape. |
Returns: string — The escaped string.