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 );