revert richtext replacement
This commit is contained in:
2025-09-21 10:13:48 +02:00
parent b1dbd85346
commit a5628019f8
28 changed files with 10558 additions and 3337 deletions

View File

@@ -129,7 +129,8 @@ 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
xmlMode: false,
decodeEntities: false
});
// Remove dangerous elements