I have the following:
<div>
<a href="{Test}">Test</a>
</div>
When I do th开发者_JAVA技巧is:
alert($("div").html());
It returns:
<a href="%7BTest%D">Test</a>
How do I get the raw HTML that is not encoded?
alert(unescape($("div").html()));
I have the following:
<div>
<a href="{Test}">Test</a>
</div>
When I do th开发者_JAVA技巧is:
alert($("div").html());
It returns:
<a href="%7BTest%D">Test</a>
How do I get the raw HTML that is not encoded?
alert(unescape($("div").html()));
精彩评论