浏览代码

导出内容过滤标签

wzq 5 年之前
父节点
当前提交
d74b779c31
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Repositories/Post/PostRepository.php

+ 2 - 2
app/Repositories/Post/PostRepository.php

@@ -854,7 +854,7 @@ class PostRepository
                                 $post->username,
                                 $post->location,
                                 implode(' ', $post->topic()->toArray()),
-                                subtext($post->content, 20),
+                                subtext(strip_tags($post->content), 20),
                                 $post->data->pv_real,
                                 $post->data->pv,
                                 $post->data->praise_real_count,
@@ -871,7 +871,7 @@ class PostRepository
                                 Carbon::parse($post->created_at)->toDateTimeString(),
                                 $post->username,
                                 Carbon::parse($post->created_at)->toDateTimeString(),
-                                subtext($post->content, 20),
+                                subtext(strip_tags($post->content), 20),
                                 $post->data->pv_real,
                                 $post->data->praise_real_count,
                                 $post->data->share_real_count,