gpt4 book ai didi

c# - 如何解码使用 encodeURIComponent() 在 JS 中编码的 HTML?

转载 作者:IT王子 更新时间:2023-10-29 03:12:22 25 4
gpt4 key购买 nike

我试过了:

string decodedHtml = HttpUtility.HtmlDecode(html);

其中 html 是编码后的 html。似乎这根本不会改变字符串。 html 仍然是编码的。

最佳答案

string s = System.Uri.UnescapeDataString(html);

关于c# - 如何解码使用 encodeURIComponent() 在 JS 中编码的 HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6022832/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com