Thread Starter
schoe
(@schoe)
This feed including the “&” might not be quite correct but other feedreaders do accept it!
The error says:
“HungryFEED can’t get feed. Don’t be mad at HungryFEED. SimplePie reported: This XML document is invalid, likely due to invalid characters. XML error: XML_ERR_NAME_REQUIRED at line 59, column 28”
There you can find the ampersand. So the “&” problem comes from SimplePie which is called by HungryFEED.
Shouldn’t there be a way to put a filter…
Plugin Contributor
Jason
(@verysimple)
Yea unfortunately it looks like an issue with SimplePie – HungryFEED can only handle feeds that SimplePie can parse. WordPress doesn’t include the most updated version of SimplePie, so upgrading can sometimes fix things.
Thread Starter
schoe
(@schoe)
In debug mode you put the whole feed in a buffer…
Regarding
if (!$feed->init()) { ... }
Isn’t there a chance to use the buffer to mask the ampersand and send it back to SimplePie?
Plugin Contributor
Jason
(@verysimple)
I’ve looked before into SimplePie for some kind of pre-processing hook to clean up feeds and such but I haven’t found any way so far.
There is one solution that I just now remembered several people have used for non-standard feeds. That is to use a feed aggregator as a proxy. Yahoo Pipes works well but is a little complicated. You can try feedBurner as well or any other feed aggregator. It works like this:
source feed <- aggregator <- hungryfeed
The aggregators tend to be more forgiving for malformed XML and other problems. so it kinda “fixes” the feed before hungryfeed get it.