UNPKG

@sveltek/markdown

Version:

Svelte Markdown Preprocessor.

17 lines (15 loc) 394 B
/** * Escapes certain Svelte special characters in a string, replacing them with their corresponding HTML entity codes. * * Ensures that the string can safely be used in templates or code. * * @example * * ```ts * import { escapeSvelte } from '@sveltek/markdown/utils' * * escapeSvelte(value) * ``` */ declare function escapeSvelte(value: string): string; export { escapeSvelte };