Function PubFgdy(Test,Tag,Bh) PubFgdy="" if Test<>"" and isnumeric(Bh)=true Then Dim Tests Tests=split(Test&Tag,Tag) if Bh<Ubound(Tests) then PubFgdy=Tests(Bh) end if else PubFgdy="" exit function end if end function
Function PubCodeGF(OldTest) dim NewTest:NewTest=trim(OldTest) if isnull(NewTest) or NewTest="" then code_admin="":exit function NewTest=replace(NewTest,"'","""") PubCodeGF=NewTest end function
function PubCodehtml(OldTest) dim NewTest:NewTest=OldTest if isnull(NewTest) or NewTest="" then PubCodehtml="":exit function NewTest=replace(NewTest,"<","<") NewTest=replace(NewTest,">",">") NewTest=replace(NewTest,chr(39),"'") '单引号 NewTest=replace(NewTest,chr(34),""") '双引号 NewTest=replace(NewTest,chr(32)," ") '空格 NewTest=replace(NewTest,chr(9)," ")'table NewTest=replace(NewTest,chr(10),"<br>") '回车 NewTest=replace(NewTest,chr(13),"<br>") PubCodehtml=NewTest end function