From ec94361d3de67ab979e438351a186fadbbd40849 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 5 May 2026 21:09:16 +0200 Subject: [PATCH] feat(notes): add DOMPurify and limit note render size Signed-off-by: Anna Larch AI-Assisted-By: Claude Sonnet 4.6 Signed-off-by: Anna Larch --- package-lock.json | 1 + package.json | 1 + src/components/AppSidebar/NotesItem.vue | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 2b82406a7..57e5abfe3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "@vueuse/components": "^14.3.0", "color-convert": "^3.1.3", "debounce": "^3.0.0", + "dompurify": "^3.2.6", "ical.js": "^2.2.0", "markdown-it": "^14.1.1", "markdown-it-emoji": "^3.0.0", diff --git a/package.json b/package.json index 690602039..61fce105d 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "color-convert": "^3.1.3", "debounce": "^3.0.0", "ical.js": "^2.2.0", + "dompurify": "^3.2.6", "markdown-it": "^14.1.1", "markdown-it-emoji": "^3.0.0", "markdown-it-link-attributes": "^4.0.1", diff --git a/src/components/AppSidebar/NotesItem.vue b/src/components/AppSidebar/NotesItem.vue index d21862eee..ef866cdd2 100644 --- a/src/components/AppSidebar/NotesItem.vue +++ b/src/components/AppSidebar/NotesItem.vue @@ -34,6 +34,7 @@ License along with this library. If not, see .
{{ newValue }}