[更新]微信图文内容html反解析

This commit is contained in:
Anyon 2017-09-28 10:45:13 +08:00
parent 5b54d3d5be
commit 2e544d4899
2 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,7 @@
<script>
$(function () {
var editDdata = {$vo.articles | default = [] | json_encode};
var editDdata = {$vo.articles|default=[]|json_encode};
for (var i in editDdata) {
$('.news-item').eq(i).data('item', editDdata[i]);

View File

@ -43,6 +43,7 @@ class WechatService
foreach ($articles as $article) {
if (intval($article['id']) === intval($article_id)) {
unset($article['create_by'], $article['create_at']);
$article['content'] = htmlspecialchars_decode($article['content']);
$data['articles'][] = $article;
}
}