|
你是不是用文本域做为留言的内容啊!如果是的那么就要把一些字符串替换出来,给你一个:
function html(constring)
constring=replace(constring,"<","<")
constring=replace(constring,">",">")
constring=replace(constring,"'","´")
constring=replace(constring,CHR(13),"")
constring=replace(constring,CHR(10),"<br>")
constring=replace(constring,chr(32)," ")
constring=replace(constring,CHR(10)&CHR(10),"</p><p>")
html=constring
end function
代用方法:<%=html(留言内容)%>
详细介绍你自己去看chr字符表! |
|