P粉9394737592023-08-22 17:15:45
Starting from Vue2, the three curly braces are deprecated, you need to use v-html
.
<div v-html="task.html_content"> </div>
It's not clear from the documentation link what we should put in v-html
, your variables should be placed in v-html
.
Also, v-html
only works with <div>
or <span>
, not <template>
.
If you want to see it live in the app, please click here.
P粉3990907462023-08-22 15:03:22
You can use the v-html
directive to display it.
like this:
<td v-html="desc"></td>