function changechr(str) str=server.htmlencode(str) str=replace(str,chr(39),"") str=replace(str,vbcrlf,"<br>") str=replace(str,chr(13),"<br>") changechr=str end function 这个要如何理解啊?
function changechr(str) str=server.htmlencode(str) 进行HTML编码,让网页能识别 str=replace(str,chr(39),"") 空格转换 str=replace(str,vbcrlf,"<br>")换行转换 str=replace(str,chr(13),"<br>")回车转换 changechr=str end function