From: Andrew Dolgov Date: Wed, 16 May 2007 06:25:56 +0000 (+0100) Subject: better correction of wrong ampersands in Magpie X-Git-Tag: schema_freeze_for_1.2.11~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=59d6a586fdc0611e7d7447641fa64ca384abf3c2;p=tt-rss.git better correction of wrong ampersands in Magpie --- diff --git a/magpierss/rss_parse.inc b/magpierss/rss_parse.inc index f0558ac8..b9c92c55 100644 --- a/magpierss/rss_parse.inc +++ b/magpierss/rss_parse.inc @@ -122,7 +122,7 @@ class MagpieRSS { xml_set_element_handler($this->parser, 'feed_start_element', 'feed_end_element' ); - $source = preg_replace("/&(?!amp;)/","&",$source); + $source = preg_replace("/&(?![^ ][^ ]+;)/","&",$source); xml_set_character_data_handler( $this->parser, 'feed_cdata' );