Sample code for 30+ languages & platforms
C#

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat C# Downloads

C#
//  Decode the following HTML entities, replacing each with the character represented.
string s = "é é é Latin small letter e with acute";

Chilkat.StringBuilder sb = new Chilkat.StringBuilder();

sb.Append(s);
sb.EntityDecode();

//  Output: é é é Latin small letter e with acute
Debug.WriteLine(sb.GetAsString());