|
@@ -23,7 +23,7 @@ class PostTransformer extends TransformerAbstract
|
|
|
'username' => $post['username'],
|
|
|
'avatar' => $post['avatar'],
|
|
|
'topic' => $post->topic(),
|
|
|
- 'content' => subtext($post['content'], 20),
|
|
|
+ 'content' => subtext(strip_tags($post['content']), 20),
|
|
|
'location' => $post['location'],
|
|
|
'pv' => $post->data->pv_real.'/'.$post->data->pv,
|
|
|
'praise_count' => $post->data->praise_real_count.'/'.$post->data->praise_count,
|