Vannsl / vue-3-sanitize

HTML sanitizer for Vue.js 3 apps
MIT License
21 stars 3 forks source link

[question] how do i enable youtube embed? #5

Open u007 opened 2 years ago

u007 commented 2 years ago

i tried to enable iframe, but it seems to return no attributes. how do i allow certain attributes?

thank you

Harm-Nullix commented 2 years ago

You should check rather !npm sanitize-html instead of this package.
This repo you are looking at is more of a wrapper and passess arguments down.

For defaults you can use something like:

 const myOptions = { spam: 'eggs'}
 Vue.use(Vue3Sanitize, myOptions)