Skip to content

Instantly share code, notes, and snippets.

@portal7
Created May 21, 2014 16:10
Show Gist options
  • Save portal7/e075cabc1d542671e0d6 to your computer and use it in GitHub Desktop.
Save portal7/e075cabc1d542671e0d6 to your computer and use it in GitHub Desktop.
Clean HTML String to Text
var inputString = "<html>blablalba</html>"
string cleanTextFromHtml = Regex.Replace(inputTextVar, @"<[^>]+>|&nbsp;", "").Trim();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment