better correction of wrong ampersands in Magpie

This commit is contained in:
Andrew Dolgov 2007-05-16 07:25:56 +01:00
parent 45eb71a776
commit 59d6a586fd
1 changed files with 1 additions and 1 deletions

View File

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