Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. string text = "";
  2. text = textFromHtml.Replace("<DIV", System.Environment.NewLine + "<");
  3.  
  4. text = Regex.Replace(text, "<.*?>", String.Empty);
  5.  
  6. text = text.Replace("&nbsp;", "");
  7. text = HttpUtility.HtmlDecode(text);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement