]> git.wh0rd.org Git - tt-rss.git/commitdiff
better correction of wrong ampersands in Magpie
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 06:25:56 +0000 (07:25 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 06:25:56 +0000 (07:25 +0100)
magpierss/rss_parse.inc

index f0558ac80d3748d0cea8ee19f2d015ed2ad8f897..b9c92c55a3a4145021bff34088f1af42fda1dbf0 100644 (file)
@@ -122,7 +122,7 @@ class MagpieRSS {
         xml_set_element_handler($this->parser, 
                 'feed_start_element', 'feed_end_element' );
 
-        $source = preg_replace("/&(?!amp;)/","&amp;",$source); 
+        $source = preg_replace("/&(?![^ ][^ ]+;)/","&amp;",$source); 
 
         xml_set_character_data_handler( $this->parser, 'feed_cdata' );