function HTMLEncode(fString)
fString=server.htmlencode(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, CHR(32), " ")
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10) & CHR(10), "<br>")
fString = Replace(fString, CHR(10), "<br>")
HTMLEncode = fString
end function
Content=HTMLEncode(request("Content"))
经过HTML编码就不会了!!
[此贴子已经被作者于2005-12-6 19:49:01编辑过]