Trouble replacing text with JavaScript. Please help
<pre><code>function $(id) { return document.getElementById(id); }

$('h').innerHTML.replace(/hello/g, "&lt;span style='color: red;'&gt;hello&lt;/span&gt;");
</code></pre>

<p>It doesn't work. What happened?</p>
