Files
mealie/frontend/app/lib/sanitize/index.ts
T

5 lines
305 B
TypeScript

// The only module allowed to import dompurify or marked (enforced in eslint.config.mjs).
// Render user HTML through <SafeMarkdown> or <SafeInlineHtml> instead of calling these from a page.
export { sanitizeInlineHtml } from "./inline";
export { renderMarkdown, sanitizeMarkdownHtml } from "./markdown";