CSDN博客

img UglyBean

HTMLEncode函数

发表于2004/9/16 16:21:00  1256人阅读

function HTMLEncode(fString)
fString=replace(fString,";","&#59;")
fString=server.htmlencode(fString)
fString=replace(fString,"'","'")
fString=replace(fString,"--","--")
fString=replace(fString,"/","\")

fString=replace(fString,vbCrlf,"<br>")

HTMLEncode=fString
end function

阅读全文
0 0

相关文章推荐

img
取 消
img