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 it's powerfull thanks to the virtual dom, in the view you if you want to create a html element you use:
m("htmlattribute.classeCss" , "value");
So in your case:
m("span.msg" , "Text goes here");