diff --git a/deno.json b/deno.json index b57b0e2..01ca356 100644 --- a/deno.json +++ b/deno.json @@ -2,7 +2,7 @@ "imports": { "cross-fetch": "./src/deno/cross-fetch.js", "html-entities": "https://esm.sh/html-entities@2.4.0", - "fast-xml-parser": "https://esm.sh/fast-xml-parser@4.2.5", + "fast-xml-parser": "https://esm.sh/fast-xml-parser@4.3.2", "bellajs": "https://esm.sh/bellajs@11.1.2" } } diff --git a/src/utils/parseAtomFeed.js b/src/utils/parseAtomFeed.js index 96b4784..b74147d 100644 --- a/src/utils/parseAtomFeed.js +++ b/src/utils/parseAtomFeed.js @@ -40,7 +40,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, id, baseUrl), published: useISODateFormat ? toISODateString(pubDate) : pubDate, - description: buildDescription(summary || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item) diff --git a/src/utils/parseRdfFeed.js b/src/utils/parseRdfFeed.js index 5c582b2..bc9e883 100644 --- a/src/utils/parseRdfFeed.js +++ b/src/utils/parseRdfFeed.js @@ -36,7 +36,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, guid, baseUrl), published, - description: buildDescription(description || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item) diff --git a/src/utils/parseRssFeed.js b/src/utils/parseRssFeed.js index cbc793f..c1af753 100644 --- a/src/utils/parseRssFeed.js +++ b/src/utils/parseRssFeed.js @@ -37,7 +37,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, guid, baseUrl), published, - description: buildDescription(description || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item)