Is there an equivalent to HttpUtility.HtmlDecode
in WinRT? I'm developing a MetroStyle app and want to decode strings that came from a XML doc.
UrlDecode Method (System. Web) Converts a string that has been encoded for transmission in a URL into a decoded string. To encode or decode values outside of a web application, use the WebUtility class.
Converts an object's string representation into an HTML-encoded string, and returns the encoded string. Converts a string to an HTML-encoded string. Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.
The input string is encoded using the HtmlEncode method. The encoded string obtained is then decoded using the HtmlDecode method.
Use System.Net.WebUtility instead
According to this answer from a Microsoft employee, there's currently no replacement for HtmlDecode in the WinRT that's included in the Windows 8 Developer Preview.
However, there will be a replacement in the next pre-release version of WinRT.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With