开发者

Jquery get raw html?

开发者 https://www.devze.com 2023-04-11 00:22 出处:网络
I have the following: <div> <a href=\"{Test}\">Test</a> </div> When I do th开发者_JAVA技巧is:

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()));
0

精彩评论

暂无评论...
验证码 换一张
取 消