Hi All,
I have a windows control written in C# .NET 1.1. The control reads an XML file content with HTML named and numeric entities e.g. "Some text ’ some text again.". I am trying to display this in a LinkLabel but somehow it is just showing blank event if I am using HtmlUtility.HtmlDecode().
Any help is highly appreciated.
Thanks!
Loading
VulpesPosted Jan 13, 2012, 6:05 AM
However, you should be able to get around this by applying the HtmlDecode() method twice before assigning the text to the LinkLabel:
string s = "Some text ’ some text again.";
string t = HttpUtility.HtmlDecode(s);
t = HttpUtility.HtmlDecode(t); // should now read as ’