ASP常用函数:BHTML()

asp常用函数:bhtml()
程序代码
<%
'功能:相当于htmlencode2的升级.不需要循环整个字符串.

function bhtml(s)
bhtml = bstr(s)
bhtml = server.htmlencode(bhtml)
bhtml = replace(bhtml, " ", " ")
bhtml = replace(bhtml, " ", " ")
bhtml = replace(bhtml, vbcr, "<br />")
bhtml = replace(bhtml, vblf, "<br />")
bhtml = replace(bhtml, vbtab, " ")
end function
%>


Copyright © 2014 ASP技巧教程源码大全 All Rights Reserved
晋ICP备14006235号-3 页面执行时间:93.994毫秒 返回顶部