To display unescaped HTML in a Vue app, we can use the v-html directive.
All we have to do is write:
<div v-html="htmlContent"> </div>
in our template.
Then we’ll see the rendered HTML rendered in the div.
To display unescaped HTML in a Vue app, we can use the v-html directive.
All we have to do is write:
<div v-html="htmlContent"> </div>
in our template.
Then we’ll see the rendered HTML rendered in the div.