问题发布与回答 发表于 2019-3-28 12:21:19

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代码?