diff --git a/src/bb-modules/News/Service.php b/src/bb-modules/News/Service.php index 1d72db98b..c0131ce0c 100644 --- a/src/bb-modules/News/Service.php +++ b/src/bb-modules/News/Service.php @@ -83,12 +83,15 @@ class Service $pos = strpos($row->content, ''); $excerpt = ($pos) ? substr($row->content, 0, $pos) : null; + + // Remove from post content + $content = str_replace("", "", $row->content); $data = array( 'id' => $row->id, 'title' => $row->title, 'description' => $row->description, - 'content' => $row->content, + 'content' => $content, 'slug' => $row->slug, 'image' => $row->image, 'section' => $row->section, @@ -110,4 +113,4 @@ class Service return $data; } -} \ No newline at end of file +}