幕布斯7119047
<%function rp(string)dim strstr=replace(string,chr(34),"&quot;")str=replace(str,chr(38),"&amp;")str=replace(str,chr(39),"&#39;")str=replace(str,"<","&lt;")str=replace(str,">","&gt;")str=replace(str,chr(32),"&nbsp;")str=replace(str,chr(10),"<br>")str=replace(str,chr(13),"")rp=strend functionfunction nrp(string)dim strstr=replace(string,"&quot;",chr(34))str=replace(str,"&#39;",chr(39))str=replace(str,"&lt;","<")str=replace(str,"&gt;",">")str=replace(str,"&nbsp;",chr(32))str=replace(str,"<br>",chr(13)&chr(10))str=replace(str,"&amp;",chr(38))'注意这一句必须放在最后,否则就像楼上的那样,会出现意想不到的结果?nrp=strend function%>把以上的&符号替换为英文状态下的&
动漫人物
Function rp(s)Dim tt = Replace(s, "&", "&")t = Replace(t, "<", "<")t = Replace(t, ">", ">")t = Replace(t, " ", " ")t = Replace(t, vbcrlf, "<br>") '这个是Windows换行符,vbcrlfrp = tEnd FunctionFunction nrp(s)Dim tt = Replace(s, "&", "&")t = Replace(t, "<", "<")t = Replace(t, ">", ">")t = Replace(t, " ", " ")t = Replace(t, "<br>", vbcrlf)nrp = tEnd Function