Merge pull request #1068 from mohabmes/master

Remove Tag-more from post content
This commit is contained in:
Yağızhan authored and GitHub committed 2021-10-09 10:41:34 +03:00
commit aad7e5589f
1 file changed
+5 -2
+5 -2
View File
@@ -83,12 +83,15 @@ class Service
$pos = strpos($row->content, '<!--more-->');
$excerpt = ($pos) ? substr($row->content, 0, $pos) : null;
// Remove <!--more--> from post content
$content = str_replace("<!--more-->", "", $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;
}
}
}