c#中过滤html的正则表达式


TempContent 表示包含有html的字符串;
TempContent = System.Text.RegularExpressions.Regex.Replace(TempContent,"<[^>]+>","");至少一个
TempContent = System.Text.RegularExpressions.Regex.Replace(TempContent,"<[^>]*>","");任意个


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3