2005-12-01

Simple regex to strip HTML tags

It may not be perfect but it works for me:

string stripped = Regex.Replace(textBox1.Text,@"<(.\n)*?>",string.Empty);

Here is the original article from Roy Osherove' blog

No comments: