title: Convert character entities to their unicode equivalents
body: <p>I have html encoded strings in a database, but many of the character entities are not just the standard <code>&amp;amp;</code> and <code>&amp;lt;</code>.  Entities like <code>&amp;ldquo;</code> and <code>&amp;mdash;</code>. Unfortunately we need to feed this data into a flash based rss reader and flash doesn't read these entities, but they do read the unicode equivalent (ex <code>&amp;#8220;</code>). </p>
  
  <p>Using .Net 4.0, is there any utility method that will convert the html encoded string to use unicode encoded character entities?</p>
  
  <p>Here is a better example of what I need.  The db has html strings like: <code>&lt;p&gt;John &amp;amp; Sarah went to see $ldquo;Scream 4$rdquo;.&lt;/p&gt;</code> and what I need to output in the rss/xml document with in the <code>&lt;description&gt;</code> tag is: <code>&amp;lt;p&amp;gt;John &amp;amp;#38; Sarah went to see &amp;amp;#8220;Scream 4&amp;amp;#8221;.&amp;lt;/p&amp;gt;</code></p>
  
  <p>I'm using an XmlTextWriter to create the xml document from the database records similar to this example code <a href="http://www.dotnettutorials.com/tutorials/advanced/rss-feed-asp-net-csharp.aspx" rel="noreferrer">http://www.dotnettutorials.com/tutorials/advanced/rss-feed-asp-net-csharp.aspx</a></p>
  
  <p>So I need to replace all of the character entities within the html string from the db with their unicode equivilant because the flash based rss reader doesn't recognize any entities beyond the most common like <code>&amp;amp;</code>.</p>