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标签