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.
因此,既然System.Web&HttpContext在 Silverlight 中不可用,有没有办法在 Silverlight 应用程序中执行HtmlDecode&HtmlEncode而不需要一些可怕的正则表达式?
System.Web
HttpContext
HtmlDecode
HtmlEncode
System.Windows.Browser有一个带有HtmlEncode和HtmlDecode方法的HttpUtility类。