vue display html code example
Example 1: vue render html raw
<p>Using mustaches: {{ rawHtml }}</p>
<p>Using v-html directive: <span v-html="rawHtml"></span></p>
Example 2: vuejs display html
...
<p>Use `v-html` : <span v-html="rawHtml"></span></p>
...
<script>
export default {
data() {
return {
rawHtml: 'Hi <strong>Vue.js</strong>'
}
}
}
</script>