From 29411383582383b4711cb6b9bbb178355d81d8ed Mon Sep 17 00:00:00 2001 From: angerangel Date: Tue, 13 Feb 2024 18:10:15 +0100 Subject: [PATCH] Improved image enclosure as per RSS 2, and improved description removing tags --- bl-plugins/rss/plugin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php index c53e3dcc..e0b8b1a4 100644 --- a/bl-plugins/rss/plugin.php +++ b/bl-plugins/rss/plugin.php @@ -75,8 +75,10 @@ class pluginRSS extends Plugin { $xml .= ''; $xml .= ''.$page->title().''; $xml .= ''.$this->encodeURL($page->permalink()).''; - $xml .= ''.$page->coverImage(true).''; - $xml .= ''.Sanitize::html($page->contentBreak()).''; + $imagepath = parse_url($page->coverImage(true), PHP_URL_PATH); + $imagepath = $_SERVER['DOCUMENT_ROOT'] . $imagepath; + $xml .= ''; + $xml .= ''. strip_tags( $page->contentBreak() ) .''; $xml .= ''.date(DATE_RSS,strtotime($page->getValue('dateRaw'))).''; $xml .= ''.$page->uuid().''; $xml .= '';