码迷,mamicode.com
首页 > Web开发 > 详细

ASPCMS内容调用去掉html标签

时间:2015-05-06 13:12:09      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

打开\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)&"..."

ASPCMS内容调用去掉html标签

标签:

原文地址:http://www.cnblogs.com/jiangchuanyu/p/4481498.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!