yangxin 发表于 2021-5-1 11:09:00

aspcms调用的单页面内容如何过滤HTML代码

aspcms调用的单页面内容如何过滤HTML代码?
回答:
修改AspCms_MainClass.asp文件中下面代码
1146行开始:
修改前:
if len(decodeHtml(DateArray(6,i)))>infolen then
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen)&"…")
else
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen))
end if
修改后
if len(decodeHtml(DateArray(6,i)))>infolen then
nloopstr = replace(nloopstr,matchfield.value,left(replace(dropHtml(DateArray(6,i)),"{aspcms:page}",""),infolen)&"…")
else
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen))
end if
页: [1]
查看完整版本: aspcms调用的单页面内容如何过滤HTML代码