过滤HTML标记,以及清除缓存

来源:互联网 发布:长沙理工网络教学 编辑:程序博客网 时间:2024/06/13 17:43

 Dim Pattern = "<(///s*)?!?((/w+:)?/w+)(/w+(/s*=?/s*(([""'])(//[""'tbnr]|[^/7])*?/7|/w+)|.{0})|/s)*?(///s*)?>"

strHTML = System.Text.RegularExpressions.Regex.Replace(strHTML, Pattern, String.Empty, System.Text.RegularExpressions.RegexOptions.IgnoreCase)

 

 

  <%    
  Response.Buffer=true;  
  Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);  
  Response.Expires=0;  
  Response.CacheControl="no-cache";  
  %>

原创粉丝点击