Hello World!

Nice way for strip_tags a like

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,"");
posted @ 2014-07-17 09:38  世界万物  阅读(209)  评论(0编辑  收藏  举报
Bye World!