Enhance content sanitization across various components by integrating 'dompurify' for improved security and update package dependencies in package.json and package-lock.json.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m56s

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:49:20 +01:00
parent acfa842131
commit 316cce1b26
49 changed files with 349 additions and 23 deletions

View File

@@ -168,7 +168,7 @@
</div>
<div
class="text-sm text-gray-600 prose prose-sm max-w-none mb-3"
v-html="post.content.substring(0, 200) + (post.content.length > 200 ? '...' : '')"
v-html="useSanitizeHtml(post.content.substring(0, 200) + (post.content.length > 200 ? '...' : ''))"
/>
<!-- Empfängerliste (collapsible) -->
@@ -770,6 +770,7 @@
import { ref, computed, onMounted } from 'vue'
import { Plus, Loader2, Users, Trash2 } from 'lucide-vue-next'
import RichTextEditor from '~/components/RichTextEditor.vue'
import { useSanitizeHtml } from '~/composables/useSanitizeHtml'
const authStore = useAuthStore()