JavaScript: conditional formatting within document.createtextnode?
<p>I have a piece of javascript that generates code like;</p>

<pre><code>DOM_a.appendChild(document.createTextNode(t.headingText));
</code></pre>

<p>In this example <strong>t.headingText</strong> might (or might not) contain text that I want to display in a certain way, like bold. If the text ends up being "Holy Cow" I want it to display on my page as "<strong>Holy</strong> Cow"</p>

<p>How can I make this happen with this code? I know that I would need to append the child "b" calls but I dont know how to do that conditionally within a string.</p>
