Skip to content

Commit ba50528

Browse files
committed
取消对评论中标签的删除
1 parent 1517699 commit ba50528

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Application/Common/Model/CommentModel.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ public function getChildData($aid){
131131
->order('date desc')
132132
->select();
133133
foreach ($data as $k => $v) {
134-
// 删除除img外的其他标签
135-
$v['content']=htmlspecialchars_decode($v['content']);
136-
$data[$k]['content']=strip_tags($v['content'],'<img>');
137134
// 获取二级评论
138135
$this->child=array();
139136
$this->getTree($v);

0 commit comments

Comments
 (0)