firebird
firebird

Reputation: 3511

Jquery get raw html?

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

Answers (1)

Jamiec
Jamiec

Reputation: 136074

alert(unescape($("div").html()));

Upvotes: 6

Related Questions