I’m trying to write a simple RSS feed reader in C# using the XmlReader class. The problem I’ve run into, is that some feeds use, from what I understand, HTML representations of some characters, such as ’ for apostrophe in the title/description. In fact, a couple newspapers I was looking at had some articles with just a regular old single quote used as an apostrophe and some where it was replaced with 146. I’ve considered doing string replacements before displaying the title/descrip, but I’d really rather avoid kludging and find a proper solution, if there is one, that will also work for other characters that use a similar format.
Any suggestions would be very much appreciated.
I’m trying to write a simple RSS feed reader in C# using the XmlReader
Share
You can use HttpUtility.HtmlDecode