I downloaded some data from a site, and I got this string: Guangzhou R&F
, as you can see within the string I have also amp;
but the correct string (displayed on the site) is: Guangzhou R&F.
So I'm trying to remove that string using Regex
, the expression I wrote is this:
public static string RemoveHtml(string input)
{
return Regex.Replace(input, @"<[^>]+>| ", "").Trim();
}
the problem is that the Regex
expression doesn't remove the amp;
what I did wrong?