我该如何去code HTML,这是连接使用EN codeURIComponent在JS codeD()? [英] How do I decode HTML that was encoded in JS using encodeURIComponent()?
本文介绍了我该如何去code HTML,这是连接使用EN codeURIComponent在JS codeD()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试过:
串去codedHtml = HttpUtility.HtmlDe code(HTML);
在哪里HTML是EN codeD HTML。似乎这并不改变该字符串在所有。该HTML仍然是连接codeD。
解决方案
字符串s = System.Uri.UnescapeDataString(HTML);
I tried :
string decodedHtml = HttpUtility.HtmlDecode(html);
Where html is the encoded html. It seems that this does not alter the string at all. The html is still encoded.
解决方案
string s = System.Uri.UnescapeDataString(html);
这篇关于我该如何去code HTML,这是连接使用EN codeURIComponent在JS codeD()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文