Skip to content

Commit 80e3f9c

Browse files
committed
feat: remove HTML stripping
1 parent daebbde commit 80e3f9c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.scully/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
identifier: k8p7l5odl6b2cet5

scully/plugins/from-rss.plugin.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HandledRoute, registerPlugin } from '@scullyio/scully';
22
import RssParser from 'rss-parser';
3-
import { stripHtml } from 'string-strip-html';
43

54
interface DevCommunityRssFeed {
65
readonly language: string;
@@ -27,11 +26,7 @@ async function fromRssPlugin(
2726
options: FromRssOptions
2827
): Promise<HandledRoute[]> {
2928
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-
}));
29+
const items = feed.items;
3530

3631
return [
3732
{

0 commit comments

Comments
 (0)