University of Saskatchewan

Include an RSS Feed on Your Website

Feed2js will help you display an RSS feed on your web site. All you need to enter is the URL for the RSS source, and select the desired options below.

First, be sure to preview the feed to verify the content and format. Once the content is displayed the way you like, use the generate javascript button to get your code. Once the content looks okay, move on to our style tool to make it pretty.

URL Enter the web address of the RSS Feed

Note: Please verify the URL of your feed (make sure it presents raw RSS) and check that it is valid before using this form.

Show n' Tell!

Show channel? Display channel title and description (yes=show both; title=show title only, no=do not display anything)
yes title no

Number of items to display. Enter the number of items to display (enter 0 to show all available)

Show/Hide item descriptions? How much? (0=no descriptions; 1=show full description; n>1 = display first n characters of description; n=-1 do not link item title, just display item contents)

Show item author? Display the item's author (yes=show the author; no=do not display anything)
yes no

Use HTML in item display? ("yes" = use HTML from feed and the full item descriptions will be used, ignoring any character limit set above; "no" = output is text-only formatted by CSS; "preserve paragraphs" = no HTML but convert all RETURN/linefeeds to <br> to preserve paragraph breaks)
yes no preserve paragraphs only

Show item posting date? Display the date the item was added to the feed.
yes no

Time Zone Offset (+n/-n/'feed') Date and time are converted to GMT; to display in local time, you must enter an offset to your current local time. If your local time is 5 hours before GMT, enter -5. If your local time is 8 hours past GMT, enter +8. Fractional offsets such as +10:30 must be entered as decimal +10.5. If you prefer to just display the date as recorded in the RSS, use a value = feed

Target links in the new window? (n="no, links open the same page", y="yes, open links in a new window", "xxxx" = open links in a frame named 'xxxx', 'popup' = use a JavaScript function popupfeed() to open in new window)

UTF-8 Character Encoding (advanced users)
use UTF-8 character encoding

Podcast enclosures
For RSS 2.0 feeds with enclosures, display link to media files
yes no

Custom CSS Class (advanced users)
Use to create different styles for multiple feeds per page. Specify class for content as rss_box_XXXX where XXXX is the value entered below. Style sheets must be created in accordance with Feed2JS guidelines.

Feed2JS is free software created by Alan Levine. It is available as both a free service and open source code from: