I am looking for an HTML encoder that is a little more thorough than .NET's HtmlEncode method. That method will handle <> but not long dashes, which is causing me problems. Is there a .NET library out there that encodes all special characters into HTML?
Where this:
CHARLOTTE, N.C. (AP) — The Republican National Committee is holding its winter meetings in the North Carolina city where Democrats re-nominated Barack Obama for president four months ago.
Would translate into:
CHARLOTTE, N.C. (AP) &mdash ; The Republican National Committee is holding its winter meetings in the North Carolina city where Democrats re-nominated Barack Obama for president four months ago.