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,"");
原文地址:https://www.cnblogs.com/rash/p/3850221.html