I have the following code:
HTML
<div id="app">
<h1>
Hello {{superscript('hello')}}
</h1>
</div>
JS
new Vue({
el: "#app",
data: {
},
methods: {
superscript(input) {
return '<sup>' + input + '</sup>'
}
}
})
I want this to render:
Hello hello
But instead it renders the tags themselves without turning it into a superscript. JSfiddle: http://jsfiddle.net/agreyfield91/eywraw8t/188244/
Is there a way to add html tags through a Vue.js method?