Skip to content

Instantly share code, notes, and snippets.

@jonallured
Created February 5, 2015 21:42
Show Gist options
  • Save jonallured/1b8c2b43619bca2f05dc to your computer and use it in GitHub Desktop.
Save jonallured/1b8c2b43619bca2f05dc to your computer and use it in GitHub Desktop.
Add common feed element
Feedjira::Feed.add_common_feed_element("image")
feed = Feedjira::Feed.fetch_and_parse("http://cltampa.com/tampa/Rss.xml?section=2065818")
feed.image
# => http://cltampa.com/binary/9697/adminIcon_clTampa.jpg
@sullysaurus
Copy link

Sweet, thank you so much. Last question, would it be possible to just retain all of the html formatting that the authors used?

@jonallured
Copy link
Author

Hmmm, not sure I get your meaning - could you provide an example of what's not working? The summary does have HTML in it, so I think you're good to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment