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
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m56s
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user