How to set elements html content from a string using JS?
<p>Before:</p>

<pre><code>&lt;div id="foo"&gt;&lt;/div&gt;
</code></pre>

<p>After:</p>

<pre><code>&lt;div id="foo"&gt;&lt;a href="www.stackoverflow.com"&gt;best site eva&lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>How to accomplish this with pure JS (no jQuery)?</p>
