← Back

vue/no-v-html tip

This rule reports all uses of v-html directive in order to reduce the risk of injecting potentially unsafe / unescaped html into the browser leading to Cross-Site Scripting (XSS) attacks.

Examples

✅  Correct

<template>
     <div v-html="someHTML" />
</template>