How do I change the amount of text a nested <a> tag encompasses using jQuery?
<p>What I'm trying to do is to take paragraph containing a link, e.g.:</p>

<pre><code>&lt;p&gt;this is a &lt;a href="#"&gt;link&lt;/a&gt; to something&lt;/p&gt;
</code></pre>

<p>... and modify it with jQuery so the link contains <strong>all</strong> the paragraph text, e.g.:</p>

<pre><code>&lt;p&gt;&lt;a href="#"&gt;this is a link to something&lt;/a&gt;&lt;/p&gt;
</code></pre>

<p>I can't seem to get my head around this at the mo.</p>

<p>Cheers,
James</p>
