Reputation: 3511
I have the following:
<div> <a href="{Test}">Test</a> </div>
When I do this:
alert($("div").html());
It returns:
<a href="%7BTest%D">Test</a>
How do I get the raw HTML that is not encoded?
Upvotes: 3
Views: 2895
Reputation: 136074
alert(unescape($("div").html()));
Upvotes: 6