add magpie ampersand fix as per forum thread #740
This commit is contained in:
parent
b36e002f76
commit
f965ee33c5
|
@ -121,7 +121,9 @@ class MagpieRSS {
|
||||||
xml_set_object( $this->parser, $this );
|
xml_set_object( $this->parser, $this );
|
||||||
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);
|
||||||
|
|
||||||
xml_set_character_data_handler( $this->parser, 'feed_cdata' );
|
xml_set_character_data_handler( $this->parser, 'feed_cdata' );
|
||||||
|
|
||||||
$status = xml_parse( $this->parser, $source );
|
$status = xml_parse( $this->parser, $source );
|
||||||
|
|
Loading…
Reference in New Issue