How can I unescape a string that contains &#xxx; ?
Example:
"Quelque petite scratch sur lécran
"
"Quelque petite scratch sur lécran
"
è
| è
é
| é
How can I unescape a string that contains &#xxx; ?
Example:
"Quelque petite scratch sur lécran
"
"Quelque petite scratch sur lécran
"
è
| è
é
| é
WebUtility.HtmlDecode
should do the trick, example
using System;
using System.Net;
public class Program
{
public static void Main()
{
string b = WebUtility.HtmlDecode("Quelque petite scratch sur lécran");
Console.WriteLine("After HtmlDecode: " + b);
}
}