Function ClearHtml(Content)<br />
Content=Zxj_ReplaceHtml("&#[^>]*;", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml(" ","",Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content) <br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("(javascript|jscript|vbscript|vbs):", "", Content)<br />
Content=Zxj_ReplaceHtml("on(mouse|exit|error|click|key)", "", Content)<br />
Content=Zxj_ReplaceHtml("<\\?xml[^>]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("<\/?[a-z]+:[^>]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>", "", Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
Content=Zxj_ReplaceHtml("]*>","",Content)<br />
ClearHtml=Content<br />
End Function <br />
Function Zxj_ReplaceHtml(patrn, strng,content)<br />
IF IsNull(content) Then<br />
content=""<br />
End IF<br />
Set regEx = New RegExp ' 建立正则表达式。<br />
regEx.Pattern = patrn ' 设置模式。<br />
regEx.IgnoreCase = true ' 设置忽略字符大小写。<br />
regEx.Global = True ' 设置全局可用性。<br />
Zxj_ReplaceHtml=regEx.Replace(content,strng) ' 执行正则匹配<br />
End Function <br />
<br />
调用函数 ClearHtml()