aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Ortlepp <post@ortlepp.eu>2021-05-14 14:47:35 +0200
committerThorsten Ortlepp <post@ortlepp.eu>2021-05-14 14:47:35 +0200
commite3c3cf5f8ccc1f47994306c7ca8c2b6991d127d9 (patch)
treee527504a74f2338544d0f26ea66deefa747462e5
parent54521ffe7c9ee9c42eb974552dd91a94b517dca2 (diff)
downloadphp-stuff-e3c3cf5f8ccc1f47994306c7ca8c2b6991d127d9.zip
Remove HTML from description
-rw-r--r--feed2podcast/feed2podcast.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/feed2podcast/feed2podcast.php b/feed2podcast/feed2podcast.php
index d7f137c..6f8f2a9 100644
--- a/feed2podcast/feed2podcast.php
+++ b/feed2podcast/feed2podcast.php
@@ -97,7 +97,7 @@ foreach ($xml->channel->item as $item) {
echo '<item>';
echo ' <title>'.$item->title.'</title>';
echo ' <link>https://'.$_SERVER['HTTP_HOST'].'/'.$downloads.'/'.$filename.'</link>';
- echo ' <description>'.$item->description.'</description>';
+ echo ' <description>'.str_replace("www.deutschlandfunk.de,", "", strip_tags($item->description)).'</description>';
echo ' <pubDate>'.$item->pubDate.'</pubDate>';
echo ' <guid>'.$item->guid.'</guid>';
echo ' <enclosure url="https://'.$_SERVER['HTTP_HOST'].'/'.$downloads.'/'.$filename.'" length="'.filesize($downloads.'/'.$filename).'" type="'.$filetype.'"/>';