帮忙解释一下这个函数

[复制链接]
查看11 | 回复1 | 2008-10-31 16:07:07 | 显示全部楼层 |阅读模式
Function LoseHTML(strHTML)
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = ""
strHTML = strHTML & ""
if strHTML="" Then LoseHTML="":Exit Function
strOutput = objRegExp.Replace(strHTML, "")
strOutput = Replace(strOutput, "", ">")
strOutput = Replace(strOutput, " ", "")
LoseHTML = strOutput 'Return the value of strOutput
Set objRegExp = Nothing
End Function

回复

使用道具 举报

千问 | 2008-10-31 16:07:07 | 显示全部楼层
ASP中过滤所有HTML代码的Function函数!2007-07-16 13:08]*>"
regex.Global = True
regex.IgnoreCase = True
htmllen = regex.Replace(strHtml,"")
regex.Pattern = "\n"
regex.Global =...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行