网络编程 
首页 > 网络编程 > 浏览文章

如何编写一个过滤掉HTML代码的函数?

(编辑:jimmy 日期: 2024/10/7 浏览:3 次 )

如何编写一个过滤掉HTML代码的函数?

<%
Function Filterhtml(strToFilter)
  Dim strTemp
  strTemp = strToFilter
  While Instr(1,strTemp,"<") AND Instr(1, strTemp, ">")
    strTemp = Left(strTemp, Instr(1, strTemp, "<")-1) & Right(strTemp, Len(strTemp)-Instr(1,strTemp, ">"))
  WEnd
  Filterhtml = strTemp
End Function
%>
上一篇:如何编写一个创建FTP站点的函数?
下一篇:如何将访问者数目周期性地保存?