DEV Community

Discussion on: Should you care about XSS in Vue.js?

Collapse
 
nandod1707 profile image
Nando Delgado

Hey Steeve! If you absolutely need to use v-html (which I understand you do), then you should look into sanitizing user input when it gets to the server. I can recommend this library I've been working with recently, if you're using Node server side then it might help! npmjs.com/package/sanitize-html

Collapse
 
steeve profile image
Steeve

I will take a look, thanks Nando :)