dever 6 年之前
父节点
当前提交
abb5cbd42f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      content/lib/Article.php

+ 4 - 0
content/lib/Article.php

@@ -20,6 +20,10 @@ class Article
         //embed
         $data['content_array'] = array();
 
+        if (strstr($data['content'], 'font-family:" hiragino="" sans="" gb","microsoft="" yahei","simsun";')) {
+            $data['content'] = str_replace('font-family:" hiragino="" sans="" gb","microsoft="" yahei","simsun";', '', $data['content']);
+        }
+        
         if (strstr($data['content'], 'font-family:" gb","microsoft="" sans="" hiragino="" yahei","simsun";')) {
             $data['content'] = str_replace('font-family:" gb","microsoft="" sans="" hiragino="" yahei","simsun";', '', $data['content']);
         }