wpnuxt / wpnuxt-core

WPNuxt core module: connect Nuxt with a headless WordPress using GraphQL
https://wpnuxt.com
27 stars 2 forks source link

replace v-html with v-sanitize #169

Closed vernaillen closed 4 months ago

vernaillen commented 4 months ago

After searching why we had hydration issues when rendering blocks, it appears to be caused by the v-html directive.

This is a known issue in vue: https://github.com/vuejs/core/issues/9033

Next to that it would also be great to make sure the rendered html is sanitized, to solve both issues we could maybe replace v-html with v-sanitize: https://leopiccionia.github.io/vue-sanitize-directive/