<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms 评论引用的标签替换{quote}

时间:2020-12-21

dedecms的评论有个引用评论的功能,在引用评论之后发布之后,后台会自动增加引用标签,当下次加载显示的时候后台会重新替换这些标签成html代码,替换这些标签的函数为Quote_replace(),这个函数在include/helpers/channelunit.helper.php文件中。

01 function Quote_replace($quote)
02 {
03 $quote = str_replace('{quote}','<div class="decmt-box">',$quote);
04 $quote = str_replace('{title}','<div class="decmt-title"><span class="username">',$quote);
05 $quote = str_replace('{/title}','</span></div>',$quote);
06 $quote = str_replace('&lt;br/&gt;','<br>',$quote);
07 $quote = str_replace('&lt;''<', $quote);
08 $quote = str_replace('&gt;''>', $quote);
09 $quote = str_replace('{content}','<div class="decmt-content">',$quote);
10 $quote = str_replace('{/content}','</div>',$quote);
0