Replace just one occurrence of a sentence and wrap it with style
<p>My goal is to find a sentence in a html page and replace it / wrapping with 
<code>&lt;span class='red'&gt;...&lt;/span&gt;</code></p>

<p>basically the same concept of highlighting results...but instead of words i need to highlight an entire sentence</p>

<p>for some reason my code sometimes works, sometimes not...</p>

<p>here:</p>

<pre><code>$('body').each( function () {
  $(this).html(function(i, html) {
    return html.replace(myString, '&lt;span class="red"&gt;'+myString+'&lt;\/span&gt;' );
  }); 
});
</code></pre>

<p>also it seems to stop when it finds the first occurence of the first word of the sentence...
any help?</p>
