I found this code works great as the function strip_tags in php to replace html tags from string and I just want to share it with you. Hope it benefits!
System.Text.RegularExpressions.Regex regHtml = new System.Text.RegularExpressions.Regex("<[^>]*>"); string s = regHtml.Replace(InputString,"");
Nice way for strip_tags a like,布布扣,bubuko.com
Nice way for strip_tags a like
原文地址:http://www.cnblogs.com/rash/p/3850221.html