title: Extract href from html with jQuery
body: <p>I'm trying to get the value of href from an anchor. The code looks like this</p>
  
  <p><code>
  var html = "&lt;a href=&#39;<a href="http://path/to/file.pdf&#39;&gt;File&lt;/a&amp;gt" rel="noreferrer">http://path/to/file.pdf&#39;&gt;File&lt;/a&amp;gt</a>;";<br/>
  alert(jQuery("a",html).attr("href"));
  </code></p>
  
  <p>The only output I get is 'undefined'.
  I'm want to get "<a href="http://path/to/file.pdf" rel="noreferrer">http://path/to/file.pdf</a>".</p>
  
  <p>Any help is greatly appreciated.</p>