除了 <p> </p> <a href= " "> </a> <img src= " "/> 外
将过滤所有的HTML,这种应该怎么写正则表达式啊??
------解决方案--------------------------------------------------------
try
string yourStr = ..........;
string result = Regex.Replace(yourStr, @ " <(?!p|/p|a|/a|img)[^> ]*> ", " ", RegexOptions.IgnoreCase);