Do not allow style tags in untrusted html

This commit is contained in:
Marcel Hellkamp 2023-07-20 09:51:28 +02:00
parent eecf6003e0
commit 7ffa2a2f6d

View File

@ -28,5 +28,10 @@ import VueDOMPurifyHTML from 'vue-dompurify-html';
const app = createApp(App)
app.use(VueMasonryPlugin)
app.use(VueDOMPurifyHTML)
app.use(VueDOMPurifyHTML, {
defaults: {
FORBID_TAGS: ['style'],
FORBID_ATTR: ['style']
}
})
app.mount('#app')