title: Jquery: parse tag inside CDATA
body: <p>I'm trying to parse an tag that is nested in the CDATA value:</p>
  
  <p>Basically, i have the following xml:</p>
  
  <pre><code>&lt;item&gt;
              &lt;title&gt;Time Travel Via Wormhole Breaks the Rules of Quantum Mechanics&lt;/title&gt;
              &lt;description&gt;&lt;![CDATA[&lt;p&gt;Science has done it again everybody! Brace yourselves for this groundbreaking news, freshly determined by physicists: Time travel, if it exists, may have some weird consequences. Gosh, who’d have thunk it? But no, seriously, a recent article suggests that a certain kind of theoretically possible time machine would wreak minor havoc with a firm principle [&amp;#8230;]&lt;/p&gt;&lt;p&gt;The post &lt;a href="http://blogs.discovermagazine.com/crux/2014/01/16/time-travel-via-wormhole-breaks-the-rules-of-quantum-mechanics/"&gt;Time Travel Via Wormhole Breaks the Rules of Quantum Mechanics&lt;/a&gt; appeared first on &lt;a href="http://blogs.discovermagazine.com/crux"&gt;The Crux&lt;/a&gt;.&lt;/p&gt;]]&gt;&lt;/description&gt;
              &lt;content:encoded&gt;&lt;![CDATA[&lt;p&gt;&lt;a href="https://i.stack.imgur.com/kUmJM.jpg"&gt;&lt;img class="aligncenter  wp-image-3898" alt="time-travel" src="https://i.stack.imgur.com/kUmJM.jpg" width="600" height="405" /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;Science has done it again everybody! Brace yourselves for this groundbreaking news, freshly determined by physicists: Time travel, if it exists, may have some weird consequences. Gosh, who’d have thunk it?&lt;/p&gt;
  &lt;p&gt;As with all speculative science stories, it’s important to keep things in perspective. This finding would have far-reaching and serious consequences for Internet encryption and quantum computers, among other things — assuming these wormholes really do exist. But, equally valid, the fact that this theoretical construction appears to violate known physical laws also suggests that, alas, maybe the particular wormholes in the study just don’t exist.&lt;/p&gt;
  &lt;p&gt;Whatever tricks the universe has up its sleeve, it’s exciting that we’re able to study even its wackiest possibilities in so much detail. I can&amp;#8217;t wait to see how it turns out (no spoilers, time travelers).&lt;/p&gt;
  &lt;p&gt;&lt;em&gt;Image courtesy &lt;a id="portfolio_link" href="http://www.shutterstock.com/gallery-73592p1.html"&gt;Graeme Dawes &lt;/a&gt;/ &lt;a id="portfolio_link" href="http://www.shutterstock.com/gallery-551845p1.html"&gt;Ilias Strachinis &lt;/a&gt;/ Shutterstock&lt;/em&gt;&lt;/p&gt;
  &lt;p&gt;The post &lt;a href="http://blogs.discovermagazine.com/crux/2014/01/16/time-travel-via-wormhole-breaks-the-rules-of-quantum-mechanics/"&gt;Time Travel Via Wormhole Breaks the Rules of Quantum Mechanics&lt;/a&gt; appeared first on &lt;a href="http://blogs.discovermagazine.com/crux"&gt;The Crux&lt;/a&gt;.&lt;/p&gt;]]&gt;&lt;/content:encoded&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>i can parse correctly the title, the description and also the content:encoded tag with all the CDATA value as this:</p>
  
  <pre><code>$(this.data).find('item:lt(3)').each(function(index) {
              var e = $(this);
              console.log(e);
              var category    = e.find('category').text();
              var link        = e.find('link').text();
              var title       = e.find('title').text();
              var summary     = e.find('description').text().substring( 0, 120 ) + "...";
              var content     = e.find('encoded').text();
              var image       HOW TO EXTRACT
              alert(image);
  </code></pre>
  
  <p>What i'm missing is the URL of the image that unluckly is not as in some others RSS feed into a specific elemtent:
  EX:</p>
  
  <pre><code>&lt;enclosure type="image/jpeg" url="http://www.nwzonline.de/rw/NWZ_CMS/NWZ/2011-2013/Produktion/2014/01/17/SPORT/2/Bilder/generated/SPORT_1_8d5e0b63-8d51-4e87-8249-58eab44cc923--600x337--280x158.jpg"&gt;&lt;/enclosure&gt;
  var image = e.find('img').attr('url');
  </code></pre>
  
  <p>But is inside the CDATA. Any ide how could i extract the src value from it? I need to obtain: "<a href="http://blogs.discovermagazine.com/crux/files/2014/01/time-travel.jpg" rel="nofollow noreferrer">http://blogs.discovermagazine.com/crux/files/2014/01/time-travel.jpg</a></p>
  
  <p>Thanks so Much.</p>