
    }
}
</code></pre>
<p>The Mithril component above simply copies the script tag&#39;s code into the <code>oncreate</code> hook and declares the remaining HTML tags using Mithril&#39;s <code>m()</code> syntax.</p>
<h4 id="avoid-html-entities"><a href="#avoid-html-entities">Avoid HTML entities</a></h4>
<p>A common way to misuse <code>m.trust</code> is to use it for HTML entities. A better approach is to use the corresponding unicode characters:</p>
<pre><code class="lang-javascript">// AVOID
m(&quot;h1&quo