@sveltek/markdown
Version:
Svelte Markdown Preprocessor.
17 lines • 437 B
TypeScript
//#region src/utils/escape.d.ts
/**
* 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;
//#endregion
export { escapeSvelte };