feat: content store con seed, cache e fallback
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user