summaryrefslogtreecommitdiff
path: root/magpierss/rss_parse.inc
diff options
context:
space:
mode:
Diffstat (limited to 'magpierss/rss_parse.inc')
-rw-r--r--magpierss/rss_parse.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/magpierss/rss_parse.inc b/magpierss/rss_parse.inc
index 56d420f09..f0558ac80 100644
--- a/magpierss/rss_parse.inc
+++ b/magpierss/rss_parse.inc
@@ -121,7 +121,9 @@ class MagpieRSS {
xml_set_object( $this->parser, $this );
xml_set_element_handler($this->parser,
'feed_start_element', 'feed_end_element' );
-
+
+ $source = preg_replace("/&(?!amp;)/","&",$source);
+
xml_set_character_data_handler( $this->parser, 'feed_cdata' );
$status = xml_parse( $this->parser, $source );