Question · Vue.js course · Module 2: Template Syntax

v-html Security

Why should you be careful when using v-html?

Answer options

  • It is slow
  • It can lead to XSS attacks
  • It does not work on mobile
  • It breaks component styling
Show the answer

Correct answer:

  • It can lead to XSS attacks