Direct actions on html() and text() in jQuery
<p>Is there a way to tell jQuery that you want what ever comes after <code>text()</code> or <code>html()</code> to be applied to it? Hard to explain, easier to show:</p>

<pre><code>$("#someElement").html().replace(oldWord, newWord, "g");
</code></pre>

<p>The above won't change the DOM, you'd have to do:</p>

<pre><code>$("#someElement").html($("#someElement").html().replace(oldWord, newWord, "g"));
</code></pre>

<p>which is a pain in the a**.</p>

<p><strong>edit:</strong> What I'd like to see though, is the possiblity to do this:</p>

<pre><code>$("#someElement").html(.replace(oldWord, newWord("g"));
</code></pre>

<p>Don't know if that would be possible, or even practical, really. Is there a reason this couldn't be done?</p>
