Open ghost opened 5 years ago
According to the relevant issue on rss parser (bobby-brennan/rss-parser#8), they did support content:encoded
items. Here is the sample code:
let Parser = require('rss-parser');
let parser = new Parser();
(async () => {
let feed = await parser.parseURL('https://theinitium.com/newsfeed/');
console.log(feed.title);
feed.items.forEach(item => {
console.log(item.title + ':' + item['content:encoded'])
});
})();
So I hope this issue can be fixed eventually ...
It seems that there are two ways to keep the text content in RSS feeds. Most of them use the
<description>
tag, but some of them still use<content:encoded>
.Reference: https://developer.mozilla.org/en-US/docs/Archive/RSS/Article/Why_RSS_Content_Module_is_Popular_-_Including_HTML_Contents
It seems that this service handles the
<description>
tags only. Is it possible to support the<content:encoded>
way as well? Maybe the template is like this:Well, I come to request this feature because one of my feeds, https://bots.tinysubversions.com/u/theinitium, is not showing the full text content in Mastodon, and here is a formatted sample: feeds.txt.
And by the way, thanks for your work! It's quite convenient for RSS users!