Suppose I have a string Text goes here.I need to use this string as a HTML element in my webpage. Any ideas on how to do
Text goes here
Mithril provides the m.trust method for this. At the place in your view where you want the HTML output, write m.trust( 'Text goes here' ) and you should be sorted.
m.trust( 'Text goes here' )