再生蛋白质纤维的发展:急求教一段ASP代码的含义,小弟谢谢拉!!!!~~~~~~

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 19:05:37
<%
function ChkBadWords(fString)
if not(isnull(BadWords) or isnull(fString)) then
bwords = split(BadWords, "|")
for i = 0 to ubound(bwords)
fString = Replace(fString, bwords(i), string(len(bwords(i)),"*"))
next
ChkBadWords = fString
end if
end function

function HTMLEncode(fString)
if not isnull(fString) then

fString = Replace(fString, CHR(10), "<br/>")
HTMLEncode = fString
end if
end function

function HTMLcode(fString)
if not isnull(fString) then
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10), "<br/>")
HTMLcode = fString
end if
end function
function HTMLDecode(fString)
if not isnull(fString) then

fString = Replace(fString,"<br/>",CHR(10))
HTMLDecode = fString
end if
end function

function UBBCode(strContent)
if strAllowHTML <> 1 then
strContent = HTMLEncode(strContent)
else
strContent = HTMLcode(strContent)
end if
dim re
Set re=new RegExp
re.IgnoreCase =true
re.Global=True

strContent=ChkBadWords(strContent)

set re=Nothing
UBBCode=strContent
end function
%>

修改数据库的名称。。。。。。