« Sexy Buttons

October 11, 2011

Alternate Feed2JS implementation using Google Feed API

I've used the Feed2JS service for a web site at work to convert RSS feeds into HTML to easily display feed content on web pages. Unfortunately, this service isn't very forgiving with feeds that contain invalid XML markup. In addition, the future of this service is currently in question.

This inspired me to create an alternate JavaScript implementation using the Google Feed API. This implementation has the following advantages:

  • Google's Feed API is probably more reliable and robust than feed2js.org
  • The Google Feed API is more tolerant of invalid feeds
  • Since the RSS to HTML conversion is done client side via JavaScript, you can easily customize the output to meet your own needs
The code is available at https://gist.github.com/1278827.

Posted at 11:11 AM in JavaScript

Comments

Post a comment




Remember me?