diff --git a/feed/index.php b/feed/index.php index a28ae5bede..ebd8ab6b1d 100644 --- a/feed/index.php +++ b/feed/index.php @@ -43,4 +43,9 @@ if(!empty($_REQUEST['roku'])){ header('Content-Type: text/xml; charset=UTF8'); include $global['systemRootPath'] . 'feed/mrss.php'; } + +function feedText($text){ + return str_replace(array(' '), array(''), htmlentities(strip_tags(br2nl($text)))); +} + ?> \ No newline at end of file diff --git a/feed/mrss.php b/feed/mrss.php index b317e5db6f..391e7b8d53 100644 --- a/feed/mrss.php +++ b/feed/mrss.php @@ -5,11 +5,11 @@ echo''; xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> - <?php echo htmlentities($title); ?> - + <?php echo feedText($title); ?> + - <?php echo htmlentities($title); ?> + <?php echo feedText($title); ?> 144 @@ -39,8 +39,8 @@ echo''; } ?> - <?php echo htmlentities($row['title']); ?> - + <?php echo feedText($row['title']); ?> + diff --git a/feed/rss.php b/feed/rss.php index f637add7c5..8ef3342394 100644 --- a/feed/rss.php +++ b/feed/rss.php @@ -9,14 +9,14 @@ echo'' xmlns:slash="http://purl.org/rss/1.0/modules/slash/"> " rel="self" type="application/rss+xml" /> - <?php echo htmlentities($title); ?> - + <?php echo feedText($title); ?> + hourly 1 - <?php echo $title; ?> + <?php echo feedText($title); ?> 144 @@ -41,8 +41,8 @@ echo'' } ?> - <?php echo htmlentities($row['title']); ?> - + <?php echo feedText($row['title']); ?> +