C# Quicknote: stripping html tags from a string

Below is a simple regex statement that I have been using to string html tags from a string:
string result = Regex.Replace(input, @”<(.|n)*?>”, string.Empty);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>