richtext replacement

This commit is contained in:
Stefan Hardegger
2025-09-21 10:10:04 +02:00
parent aae8f8926b
commit b1dbd85346
28 changed files with 3337 additions and 10558 deletions

View File

@@ -129,8 +129,7 @@ export async function cleanHtml(html: string): Promise<string> {
const cheerio = await import('cheerio');
const $ = cheerio.load(html, {
// Preserve self-closing tags like <br>
xmlMode: false,
decodeEntities: false
xmlMode: false
});
// Remove dangerous elements