Skip to content

Commit e228331

Browse files
authored
Merge pull request #109 from extractus/7.0.4
v7.0.4 Fix issue #108
2 parents 76f5137 + ecb4ea8 commit e228331

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.3",
2+
"version": "7.0.4",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://extractor-demos.pages.dev",

src/utils/parseAtomFeed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const transform = (item, options) => {
3434
} = item
3535

3636
const pubDate = updated || modified || published || issued
37-
const htmlContent = getText(content || summary)
37+
const htmlContent = getText(summary || content)
3838
const entry = {
3939
id: getEntryId(id, link, pubDate),
4040
title: getText(title),
4141
link: getPureUrl(link, id, baseUrl),
4242
published: useISODateFormat ? toISODateString(pubDate) : pubDate,
43-
description: buildDescription(htmlContent || summary, descriptionMaxLen),
43+
description: buildDescription(summary || htmlContent, descriptionMaxLen),
4444
}
4545

4646
const extraFields = getExtraEntryFields(item)

src/utils/parseRssFeed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const transform = (item, options) => {
3131
} = item
3232

3333
const published = useISODateFormat ? toISODateString(pubDate) : pubDate
34-
const htmlContent = getText(content || description)
34+
const htmlContent = getText(description || content)
3535
const entry = {
3636
id: getEntryId(guid, link, pubDate),
3737
title: getText(title),
3838
link: getPureUrl(link, guid, baseUrl),
3939
published,
40-
description: buildDescription(htmlContent || description, descriptionMaxLen),
40+
description: buildDescription(description || htmlContent, descriptionMaxLen),
4141
}
4242

4343
const extraFields = getExtraEntryFields(item)

0 commit comments

Comments
 (0)