From: Andrew Dolgov Date: Wed, 16 May 2007 05:14:20 +0000 (+0100) Subject: add magpie ampersand fix as per forum thread #740 X-Git-Tag: schema_freeze_for_1.2.11~38 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f965ee33c5bd330bc1d52c05d74344cb74813557;p=tt-rss.git add magpie ampersand fix as per forum thread #740 --- diff --git a/magpierss/rss_parse.inc b/magpierss/rss_parse.inc index 56d420f0..f0558ac8 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 );