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
2005-12-01
Simple regex to strip HTML tags
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment