Removing paragraphs from text
Useful when you want to remove unwanted HTML tags in text.
using System.Text.RegularExpressions;
text = Regex.Replace(text, @"</p>", string.Empty);
text = Regex.Replace(text, @"<p>", string.Empty);
Written by Marcus Olsson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#