similar tag like dangerouslySetInnerHTML
xd-dw opened this issue · comments
xd commented
is there in Marko a similar tag like dangerouslySetInnerHTML in react so that i can dynamically render html text as html?
eg.
<div dangerouslySetInnerHTML={{ __html: rawHTMLAsText }}></div>
where rawHTMLAsText=<em>Process</em> is <em>not</em> <em>defined</em>
Dylan Piercey commented
You use $!{EXPRESSION}
to interpolate in unescaped text content (you don't need a tag for this).