Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Text.RegularExpressions;
- public string removeHTML(string input)
- {
- string pattern = @"<(.|\n)*?>";
- Regex regex = new Regex(pattern, RegexOptions.Singleline);
- string output = regex.Replace(input, string.Empty);
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment