I would like to print some HTML data to elements table with vue.js.
new Vue({
el: "#app",
data: {
todos: [
{ text: "<p>Learn JavaScript</p>", done: false },
{ text: "<p>Learn Vue</p>", done: false },
{ text: "<p>Play around in JSFiddle</p>", done: true },
{ text: "<p>Build something awesome</p>", done: true }
]
},
})
and my template is
<div id="app">
<el-table :data="this.todos">
<el-table-column prop="text"></el-table-column>
</el-table>
</div>
But when I run, it prints <p>Learn JavaScript</p>
unescaped. I would like to print it as rendered as HTML.