How to get text including links (just the text part) from DOM?
<p>By using jQuery I have to extract texts and possible links from DOM. </p>

<p>For example:</p>

<pre>
This is a the first paragraph with <a href="http://whatever.com" rel="nofollow">a given link</a>. More text.<br/>
This is a second paragraph with <a href="http://whatever2.com" rel="nofollow">another link</a> and text.
</pre>

<p>The result process should be an array like the following:</p>

<p>aTexts = [ "This is a the first paragraph with a given link. More text.",
"This is a second paragraph with another link and text."];</p>

<p>I've started with the next code:</p>

<pre><code>$('#toParse').contents().filter(function() { 
  if ( this.nodeType == Node.TEXT_NODE ) {
    that.aTexts.push(this.nodeValue);
  }
})
</code></pre>

<p>How can I include link texts as part of texts in which links are included?
Thank you in advance.</p>
