Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在网络上使用 c# 会很简单
System.Web.HttpUtility.HtmlDecode()
但现在我正在使用一个 winform 应用程序并且需要转换 Html 转义值什么是等效的?
您可以参考 System.Web 库并使用它
如果您添加System.Web到您的项目引用,那么您应该能够使用该HttpUtility.HtmlDecode方法。
System.Web
HttpUtility.HtmlDecode
只需添加对System.Webdll 的项目引用,您就可以使用它。