1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-30 12:30:52 +02:00

add magpie ampersand fix as per forum thread #740

This commit is contained in:
Andrew Dolgov 2007-05-16 06:14:20 +01:00
parent b36e002f76
commit f965ee33c5

View File

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