Extract href from html with jQuery
<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;http://path/to/file.pdf&#39;&gt;File&lt;/a&gt;";<br/>
alert(jQuery("a",html).attr("href"));
</code></p>

<p>The only output I get is 'undefined'.
I'm want to get "http://path/to/file.pdf".</p>

<p>Any help is greatly appreciated.</p>
