Skip to content

Instantly share code, notes, and snippets.

@craftfortress
Created September 24, 2014 14:03
Show Gist options
  • Save craftfortress/87153b828a4e3a9c0364 to your computer and use it in GitHub Desktop.
Save craftfortress/87153b828a4e3a9c0364 to your computer and use it in GitHub Desktop.
Regex Remove HTML tags C#
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