ipt&amp;gt;alert(&#39;evil&#39;)&amp;lt;/script&amp;gt;&lt;/div&gt;
</code></pre>
<p>However, sometimes it is desirable to render rich text and formatting markup. To fill that need, <code>m.trust</code> creates trusted HTML <a href="vnodes.html">vnodes</a> which are rendered as HTML.</p>
<pre><code class="lang-javascript">var view = m(&quot;div&quot;, [
    m.trust(&quot;&lt;h1&gt;Here&#39;s some &lt;em&gt;HTML&lt;/em&gt;&lt;/h1&gt;&quot;)
])

m.render(document.body, view)

// equivalent HTML
// &lt;div&gt;