Vue.js raw HTML within attribute

Viewed 1290

Is there a way to output raw HTML to a tags attributes rather than content?

Example:

<input :placeholder="data.raw-html-message"/>

...

data.raw-html-message = "some text&hellip;"

v-html seems to only output it to the innerHTML of the tag and the triple curly braces have been removed in version 2.

Currently with a standard v-bind the output is:

<input placeholder="Message&hellip;" />

and the HTML entity is not interpreted when displayed in the browser.

Example here: https://jsfiddle.net/cdsm22q8/1/

1 Answers
Related