We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daebbde commit 80e3f9cCopy full SHA for 80e3f9c
2 files changed
.scully/settings.yml
@@ -0,0 +1 @@
1
+identifier: k8p7l5odl6b2cet5
scully/plugins/from-rss.plugin.ts
@@ -1,6 +1,5 @@
import { HandledRoute, registerPlugin } from '@scullyio/scully';
2
import RssParser from 'rss-parser';
3
-import { stripHtml } from 'string-strip-html';
4
5
interface DevCommunityRssFeed {
6
readonly language: string;
@@ -27,11 +26,7 @@ async function fromRssPlugin(
27
26
options: FromRssOptions
28
): Promise<HandledRoute[]> {
29
const feed = await rssParser.parseURL(options.rss);
30
- const items = feed.items.map((article) => ({
31
- ...article,
32
- description:
33
- stripHtml(article.description).result.substr(0, 255) + ' (...)',
34
- }));
+ const items = feed.items;
35
36
return [
37
{
0 commit comments