<% '过滤HTML字符函数 Function HTMLEncode(str) If str <> "" Then str = Replace(str, "&", "&") str = Replace(str, ">", ">") str = Replace(str, "<", "<") str = Replace(str, Chr(32), " ") str = Replace(str, Chr(9), " ") str = Replace(str, Chr(34), """) str = Replace(str, Chr(39), "'") str = Replace(str, Chr(13), "") str = Replace(str, Chr(10) & Chr(10), "</P><P>") str = Replace(str, Chr(10), "<BR>") str = Replace(str, Chr(255), " ") End If HTMLEncode = str End Function %>