首页和栏目也调用数据显示效果不同【转发】 开源系统 更新 2017-08-29 14:32:44 xiemin 文章标题用到了特殊符号,首页显示正常,但是栏目也显示出现问题,如图这是首页显示的样式,这是正常的这是栏目页同一篇文章所显示的样式,出现问题了请问该如何解决
<div class="fxkh_index_tymk_l ml10" style="width:495px"> <div class="fxkh_index_tymk_l_title"> <i class="fa fa-newspaper-o ml5 mr5"></i> <span class="title mr5">专题报道</span> <span class="title2">Zhuanti Baodao</span> <span class="fr fs12 mt5 mr5"><a href="index.php?c=category&id=7">更多 <i class="fa fa-chevron-right fs12"></i></a></span> </div> <div class="fxkh_index_tymk_l_content"> <div class="fxkh_index_tymk_list w100p"> {list action=module module=news order=updatetime num=8 catid=7} <div> <span class="fl title"> <i class="fa fa-square fs12"></i> <a href="{$t.url}" target="_blank">{dr_strcut($t.title, 40)}</a> </span> <span class="fr time"> {dr_date($t._updatetime,'[y-m-d]','red')} </span> </div> {/list} </div> </div> </div>栏目页是这样的<div class="fxkh_index_tymk_r w100p mt10"> <div class="fxkh_index_tymk_r_title"> <span class="title"> <i class="fa fa-fire ml5 mr5"></i> <span class="mr5">热门阅读</span> </span> <span class="title2">Remen Yuedu</span> </div> <div class="fxkh_index_tymk_l_content"> <div class="fxkh_index_tymk_list w100p mt10" style="height:auto"> <!--我们按点击排序--> {list action=module catid=$catid field=title,url,hits order=hits num=12} <div> <span class="fl title"> <i class="fa fa-square fs12"></i> <a href="{$t.url}" target="_blank">{dr_strcut($t.title,28)}</a> </span> <span class="fr mt5 badge {$a[array_rand($a)]}"> {if !$t.hits}0{else}{$t.hits}{/if} </span> </div> {/list} </div> </div> </div>【小虎】1楼【疾风】8楼
$string = str_replace(array('&', '"', '<', '>','▪'), array('&', '"', '<', '>', '▪'), $string);然后再更新缓存看看