I had the following code using v-text
:
<h1 v-text="content.title"></h1>
Output:
Brand Name is B&C
So I fixed it using v-html
in the previous line:
<h1 v-html="content.title"></h1>
Output:
Brand Name is B&C
My question is the following:
Why does it works using v-html
and not v-text
? I already read the Vue documentation but I don't clearly understand the difference.