mirror of
https://github.com/sruupl/batflat.git
synced 2026-02-07 04:39:03 +01:00
Fix entity at blog's RSS
This commit is contained in:
@@ -354,7 +354,7 @@ class Site extends SiteModule
|
||||
$row['content'] = $row['intro'];
|
||||
}
|
||||
|
||||
$row['content'] = preg_replace('/{(.*?)}/', '', strip_tags($row['content']));
|
||||
$row['content'] = preg_replace('/{(.*?)}/', '', html_entity_decode(strip_tags($row['content'])));
|
||||
$row['url'] = url('blog/post/'.$row['slug']);
|
||||
$row['cover_url'] = url(UPLOADS.'/blog/'.$row['cover_photo']).'?'.$row['published_at'];
|
||||
$row['published_at'] = (new \DateTime(date("YmdHis", $row['published_at'])))->format('D, d M Y H:i:s O');
|
||||
|
||||
Reference in New Issue
Block a user