Skip to content
Snippets Groups Projects
Commit fe232b8a authored by echicken's avatar echicken :chicken:
Browse files

Handle Atom entries with body text in <content> element.

parent 511f43e6
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #383 passed
......@@ -119,11 +119,15 @@ const Item = function (i) {
this.title = i.title.length() ? i.title[0].toString() : ''; // uh ...
this.date = i.pubDate.length() ? i.pubDate[0].toString() : (i.updated.length() ? i.updated[0].toString() : '');
this.author = i.author.length() ? i.author.toString() : '';
this.body = i.description.length() ? i.description[0].toString() : (i.summary.length() ? i.summary[0].toString() : '');
this.body = '';
this.content = i.encoded.length() ? i.encoded.toString() : '';
this.link = i.link.length() ? skipsp(truncsp(i.link[0].toString())) : '';
this.enclosures = [];
if (i.description.length()) this.body += i.description[0].toString();
if (i.summary.length()) this.body += i.summary[0].toString();
if (i.content.length()) this.body += i.content[0].toString();
var enclosures = i.enclosure.length();
for (var n = 0; n < enclosures; n++) {
this.enclosures.push({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment