Created
May 29, 2011 15:24
-
-
Save evancummings/997855 to your computer and use it in GitHub Desktop.
Removing HTML Markup Characters from a String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected string RemoveHTMLMarkup(string str) | |
{ | |
return Regex.Replace(str, @"<(.|\n)*?>", String.Empty); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment