Feed2RSS Available
I just finished getting what I think is a working setup of Feed2RSS, provided by Alan Levine. Just paste in the URL of a feed and it generates the javascript code you need to add the headlines to your Web page. A couple of issues I have noticed: from my blog, all apostrophes are escaped (e.g. ‘ = ‘ and this is a result of the feed itself–just checked), and the date from my blog doesn’t get posted. And I’m not sure what’s up with the cache yet–I don’t see any files in the cache directory; investigating that now. But Yippee! now we can even parse Atom feeds!
Update: WordPress must do something funky with the charset because everytime I try to type a backslash it removes it; and, it converts my apostrophes and quotes to “smart” quotes.
May 29th, 2004 - 11:58 am
The date format from your Feed seems to lack a time zone field, compare to the sample feed from:
http://cyber.law.harvard.edu/blogs/gems/tech/sampleRss20.xml
e.g. “30 Sep 2002 01:56:02 GMT”
while your WordPress date is sometihng like “Fri, 28 May 2004 13:02:52 +0000″
Both validate as RSS fine. The hitch is I am trying to take the easy route out and convert the date using PHP data() function which does seem to like your format. Let me play with the code a little to see if there is a work around as it was something I did with the old RSS2JS code.
As far as the escaped quotes, that is something WordPress is generating. A quick fix for you now is to add this line to the strip_returns function so that it reads:
function strip_returns ($text) {
$text = stripslashes($text);
$subquotes = ereg_replace(”'”, “‘”, $text);
return ereg_replace(”(\r\n|\n|\r)”, ” “, $subquotes);
}
The stripslashes function will remove the \ before quotes (it is there to prevent mujnging on database calls. I will roll this one into an update soon.