ASP将文本域内容转换为HTML格式

ASP 1427 0 2013-02-16

ASP将文本域内容转换为HTML格式
'转换为HTML格式
function convert(str)
if str<>"" then
str=replace(str,chr(32),"&nbsp;")
str=replace(str,chr(60),"&lt;")
str=replace(str,chr(62),"&gt;")
str=replace(str,chr(34),"&quot;")
str=replace(str,chr(13),"<br />")
end if
convert=str
end function

上一篇:ASP数组的使用

下一篇:ASP获取提交表单所有值

讨论数量:0

请先登录再发表讨论。 2024-04-28

天涯网魂
3 杠 5 星
TA 的文章
TA 的随言
TA 的资源链