how to remove Html tags from string in c#

by Ali Raza Zaidi on July 5, 2007

use this function

public string Strip(string text)
{
    return Regex.Replace(text, @”<(.|n)*?>”, string.Empty);
}

Comments on this entry are closed.

Previous post:

Next post: