新微赢技术网

标题: 将字符转换成网页能识别的文字 [打印本页]

作者: 赌神    时间: 2010-1-19 05:54
标题: 将字符转换成网页能识别的文字
请看下面这个函数:
function changechr(str) '将字符转换成网页能识别的字符
changechr=replace(replace(replace(replace(str,"<","&lt;"),">","&gt;"),chr(13),"<br>")," ","&nbsp;")
changechr=replace(replace(replace(replace(changechr,"[image]","<img width=516 height=389 src="),"","<b>"),"[red]","<font color=CC0000>"),"[big]","<font size=7>")
changechr=replace(replace(replace(replace(changechr,"[/image]","></img>"),"","</b>"),"[/red]","</font>"),"[/big]","</font>")
end function
上面那个函数我已经把字符转换成网页能识别的文字了,然后在前台用表格调用数据库的内容时都没有问题,可是在后台管理员需要修改的时候,把数据库中的字符内容调出来放在文本框之后就出现很多网页字符,这样不便于管理员的修改,所以请问大家,要怎么样才能从数据库调出到后台文本框内的时候不显示网页字符呀??? 谢谢




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2