title: HTML Decode without System.Web
body: <p>I am working on a CLR Table-Valued function for SQL Server 2008 R2. I need to HTMLDecode a string at one point, but this is problematic b/c that relies on System.Web, which is not a support assembly for SQL Server.</p>
  
  <p>Can anyone think of a better way to do the HTML Decode?</p>
  
  <p><strong>FYI</strong> SQL Server 2008 CLR only supports up to .NET 3.5 so system.net.webutility will not work.</p>