RSS to HTML script - version two
About the generated HTML

Each feed item should become an article. This would also allow you to include the generated HTML on any page without having to adjust the heading levels. Unless you know that h2 would always be the correct heading element in your case, you might want to use h1 instead.

You could give the a element the bookmark link type.

Unless you remove markup from the feed item’s description, you might want to use a div instead of a span, because a span can’t contain many elements that might appear in the description.

You could specify a class on the article element, and omit the classes on its child elements. Less potential to conflict with classes that might already be used in the document.

&lt;article class='feed-item'&gt;
  &lt;h1&gt;{title}&lt;/h1&gt;
  &lt;a href='{link}' rel='bookmark'&gt;{title}&lt;/a&gt;
  &lt;div&gt;{summary}&lt;/div&gt;
&lt;/article&gt;