Is it possible to get the the createTextNode method to render html tags?
<p>The following code prints</p>

<p><strong>This should print</strong>(b)This should print(/b)<strong>This should print</strong></p>

<pre><code>&lt;script&gt;
function produceMessage(){
    var msg= '&lt;b&gt;This should print&lt;/b&gt;';
    return msg;
}

&lt;/script&gt;

&lt;span id="mySpan"&gt;&lt;/span&gt;

&lt;script&gt;

    document.body.appendChild(document.createTextNode(produceMessage()));
    document.write(produceMessage());
    document.getElementById('mySpan').innerHTML=produceMessage();
&lt;/script&gt;
</code></pre>
