2.6.10
https://codepen.io/anon/pen/zbbaEp?editors=1010
Click on the link.
Quote escaping works the same both in template and javascript.
Quote escaping doesn't work in templates.
HTML escaping is different from JS, you must use <div v-text="'<div style="background-color:red;">Red block</div>'">. You were also missing the single quotes for the directive v-text to work
Note this isn't related to Vue though
Ok, thank you ;)
Most helpful comment
HTML escaping is different from JS, you must use
<div v-text="'<div style="background-color:red;">Red block</div>'">. You were also missing the single quotes for the directive v-text to workNote this isn't related to Vue though