| asp之Html2Ubb函数
					当前位置:点晴教程→知识管理交流
					
					→『 技术文档交流 』
					
				 
 [p]function html2ubb(str)[br] if str<>"" and not isnull(str) then[br]  dim re[br]  set re=new regexp[br]  re.ignorecase =true[br]  re.global=true[br]  re.pattern="(on(load|click|dbclick|mouseover|mouseout|mousedown|mouseup|mousewheel|keydown|submit|change|focus)=""[^""]+"")"[br]  str = re.replace(str, "")[br]  re.pattern="((name|id|class)=""[^""]+"")"[br]  str = re.replace(str, "")[br]  re.pattern = "( | 关键字查询 相关文章 正在查询... |