最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp html转成html编码程序
时间:2022-07-02 22:35:05 编辑:袖梨 来源:一聚教程网
html转成html编码程序
function htmlencode2(str)
dim result
dim l
if isNULL(str) then
htmlencode2=""
exit function
End if
l=len(str)
result=""
dim i
for i = 1 to l
select case mid(str,i,1)
case "
result=result+"<"
case ">"
result=result+">"
case chr(34)
result=result+"""
case "&"
result=result+"&"
case chr(32)
result=result+" "
if i+10 then
if mid(str,i+1,1)=chr(32) or mid(str,i+1,1)=chr(9) or mid(str,i-1,1)=chr(32) or mid(str,i-1,1)=chr(9) then
result=result+" "
else
result=result+" "
End if
else
result=result+" "
End if
case chr(9)
result=result+" "
case else
result=result+mid(str,i,1)
End select
next
htmlencode2=result
End function
}
相关文章
- grep文本搜索与正则表达式完整代码示例实用指南 10-16
- AI漫剧伪装直男1‑24集无雾版夸克网盘资源免费分享 10-15
- AI漫剧玉僧入尘1-68集无雾无删版夸克网盘资源免费分享 10-15
- AI漫剧拿握疯太子32集正片+4分钟专属小剧场夸克网盘资源分享 10-15
- AI漫剧权臣是我心上人1-2季未删减版夸克网盘资源分享 10-15
- AI漫剧高三爱情故事1-45集无删无雾版夸克网盘资源分享 10-15