Posted By

krisdb on 07/05/08


Tagged

c-sharp


Versions (?)

Who likes this?

8 people have marked this snippet as a favorite

ad5qa
charmcitycoder
leonbda
umang_nine
LeeRJohnson
vali29
fyreflyX
mheinrich


Strip HTML


 / Published in: C#
 

  1. protected string StripHtml(string str)
  2. {
  3. return System.Text.RegularExpressions.Regex.Replace(str, @"(<[^>]+>)", "");
  4. }

Report this snippet  

You need to login to post a comment.