feat: content store con seed, cache e fallback

This commit is contained in:
2026-07-05 15:43:29 +02:00
parent 6f51aec4c6
commit b22cc40b03
5 changed files with 153 additions and 0 deletions
+9
View File
@@ -9,3 +9,12 @@ export function sanitizeHtml(html: string): string {
allowProtocolRelative: false,
});
}
export function sanitizeInline(html: string): string {
return sanitize(html, {
allowedTags: ['strong', 'em', 'u', 's', 'br', 'a'],
allowedAttributes: { a: ['href', 'rel', 'target'] },
allowedSchemes: ['https', 'http', 'mailto'],
allowProtocolRelative: false,
});
}