Created
September 24, 2014 14:03
-
-
Save craftfortress/87153b828a4e3a9c0364 to your computer and use it in GitHub Desktop.
Regex Remove HTML tags C#
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
Regex.Replace(Body, @"(\t|\n|\r|p?></?\w+)(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>", ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment