Friday, December 12, 2008

Remove HTML tags using regex .NET

private string StripTagsRegex(string text)
{
return Regex.Replace(text, "<.*?>", string.Empty);
}