Closed erkattak closed 6 years ago
That's correct. summary
and content
come from Atom format; description
from RSS; content:encoded
from the RDF content module. The idea of this module to offer a consistent set of properties modeled mostly after the RSS spec. So, if you're looking for the simplest available representation of the main content of an item, it will be in the summary
, and the richest available representation will be in the description
-- but those might be the same (as would be the case in a plain-jane RSS feed).
It's said in
main.js
that each article in a feed will havedescription
andsummary
https://github.com/danmactough/node-feedparser/blob/master/main.js#L26-L27However, the code seems to be taking the actual XML
summary
element and putting it's value intodescription
.Also, if
content:encoded
anddescription
exist within the sameitem
, then whichever one is parsed last will take precedence.https://github.com/danmactough/node-feedparser/blob/master/main.js#L762-L770