diff --git a/lib/parser/rss2.ex b/lib/parser/rss2.ex
index 5650682..18a9bbb 100644
--- a/lib/parser/rss2.ex
+++ b/lib/parser/rss2.ex
@@ -58,6 +58,9 @@ defmodule FeedParser.Parser.RSS2 do
link = text('/item/link/text()', item)
description = text('/item/description/text()', item)
+ # http://purl.org/rss/1.0/modules/content/
+ content = text('/item/content:encoded/text()', item)
+
pubDate =
text('/item/pubDate/text()', item)
|> Timex.parse("{RFC1123}")
@@ -75,7 +78,7 @@ defmodule FeedParser.Parser.RSS2 do
title: title,
url: link,
links: [{link, nil}],
- content: description,
+ content: content || description,
date: pubDate,
creator: creator
}
diff --git a/test/fixtures/rss2/shadowfacts.xml b/test/fixtures/rss2/shadowfacts.xml
new file mode 100644
index 0000000..c113aef
--- /dev/null
+++ b/test/fixtures/rss2/shadowfacts.xml
@@ -0,0 +1,18 @@
+
+
So, about six months ago I decided I wanted to rewrite my perfectly-working blog backend in Rust. Why? Because I was bored and wanted an excuse to use Rust more.
" + end end