admin管理员组文章数量:1516870
aspcms首页content内容html代码过滤,ASPCMS内容调用去掉html标签
打开\inc\AspCms_MainClass.asp
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
将蓝色代码修改成红色代码即可。
然后是产品的简介:
找到
if len(pagecontent)>contentlen then pagecontent=left(pagecontent,contentlen)&"..." 替换为
if len(pagecontent)>contentlen then pagecontent=left(dropHtml(pagecontent),contentlen)&"..."
原文:.html
本文标签: aspcms首页content内容html代码过滤ASPCMS内容调用去掉html标签
版权声明:本文标题:aspcms首页content内容html代码过滤,ASPCMS内容调用去掉html标签 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.betaflare.com/biancheng/1701801217a483016.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论