ITeye博客

asp调用内容替换html标签

fengxu · 2008-11-12 15:20 · HTML · ASP · Markdown

函数如下:

 

Function RemoveHTML(strText)
 Dim RegExs
 Set RegExs = New RegExp 
 RegExs.Pattern = "<[^>]*>"
 RegExs.Global = True 
 RemoveHTML = RegExs.Replace(strText, "")
End Function

 

使用方法:

 

直接RemoveHTML(内容)

这样就屏蔽了所有的html标签

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。