0

I'm using SimplePie to fetch RSS feeds. All other RSS feeds are displaying except Google RSS. I checked by echo $feed->error(), the error shows

This XML document is invalid, likely due to invalid characters. XML error: EntityRef: expecting ';' at line 1, column 248

jonsca
  • 10,218
  • 26
  • 54
  • 62
lnj2011
  • 21
  • 1
  • 4

2 Answers2

0

Exchange the https for http. I had the same problem, and I tried the RSS xml that Inj2011 posted (aone of the commentators). When I looked at his feed and mine, the difference was the protocol. Then I used http, instead of https, and voila...

IberoMedia
  • 2,226
  • 7
  • 36
  • 61
0

Use "$feed->set_raw_data()" instead of "$feed->set_feed_url()", example :

$feed->set_raw_data(file_get_contents($rssurl));