aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 7d01a4a0f..2a8921da0 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -79,7 +79,7 @@ function opml_export ($cats) {
$txt .= '<outline text="' . $cat['name'] . '">' . "\n";
foreach ($cat['feeds'] as $feed) {
- $txt .= "\t" . '<outline text="' . $feed->name () . '" type="rss" xmlUrl="' . $feed->url () . '" htmlUrl="' . $feed->website () . '" />' . "\n";
+ $txt .= "\t" . '<outline text="' . cleanText ($feed->name ()) . '" type="rss" xmlUrl="' . $feed->url () . '" htmlUrl="' . $feed->website () . '" />' . "\n";
}
$txt .= '</outline>' . "\n";
@@ -88,6 +88,10 @@ function opml_export ($cats) {
return $txt;
}
+function cleanText ($text) {
+ return preg_replace ('/&[\w]+;/', '', $text);
+}
+
function opml_import ($xml) {
$opml = @simplexml_load_string ($xml);