I've a string for example like this:
Col´gio
How can I convert it to:
Colégio
Without having to do a replace for all the html codes
I've a string for example like this:
Col´gio
How can I convert it to:
Colégio
Without having to do a replace for all the html codes
Just for completion:
If you are using .NET 4.0+ you can also use WebUtility.HtmlDecode
SecurityElement securityElement = System.Security.SecurityElement.FromString("<test>H&M</test>");
string unescapedText = securityElement.Text;
Console.WriteLine(unescapedText); // Result: H&M