Is there an infinite loop in my code?
<p>My webpage crashes when I run this:</p>

<pre><code>function replace()
{
    var str = document.getElementById('feeds');
    var cont = str.innerHTML;
    curstring = "twitter: ";
    while (cont.indexOf(curstring))
    {
        replaced = cont.replace(curstring,"TWIMG ");
        str.innerHTML = replaced;
    }
}
</code></pre>
