From e9795dab9df9e9584134ed02e96cbc4db4f10d6b Mon Sep 17 00:00:00 2001 From: perfectra1n Date: Sun, 12 Apr 2026 13:16:20 -0700 Subject: [PATCH] feat(sanitization): use DOMPurify's included tags --- apps/client/src/services/sanitize_content.ts | 106 ++++++------------- apps/client/src/widgets/highlights_list.ts | 32 +++--- apps/client/src/widgets/toc.ts | 34 +++--- 3 files changed, 72 insertions(+), 100 deletions(-) diff --git a/apps/client/src/services/sanitize_content.ts b/apps/client/src/services/sanitize_content.ts index 548f5d01e8..376d130468 100644 --- a/apps/client/src/services/sanitize_content.ts +++ b/apps/client/src/services/sanitize_content.ts @@ -16,70 +16,6 @@ */ import DOMPurify, { type Config as DOMPurifyConfig } from "dompurify"; -/** - * Tags allowed in sanitized note content. This mirrors the server-side - * SANITIZER_DEFAULT_ALLOWED_TAGS from @triliumnext/commons plus additional - * tags needed for CKEditor content rendering (e.g.
for included - * notes,
/
for images and tables). - * - * Notably absent: