File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 7.0.3 " ,
2
+ "version" : " 7.0.4 " ,
3
3
"name" : " @extractus/feed-extractor" ,
4
4
"description" : " To read and normalize RSS/ATOM/JSON feed data" ,
5
5
"homepage" : " https://extractor-demos.pages.dev" ,
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ const transform = (item, options) => {
34
34
} = item
35
35
36
36
const pubDate = updated || modified || published || issued
37
- const htmlContent = getText ( content || summary )
37
+ const htmlContent = getText ( summary || content )
38
38
const entry = {
39
39
id : getEntryId ( id , link , pubDate ) ,
40
40
title : getText ( title ) ,
41
41
link : getPureUrl ( link , id , baseUrl ) ,
42
42
published : useISODateFormat ? toISODateString ( pubDate ) : pubDate ,
43
- description : buildDescription ( htmlContent || summary , descriptionMaxLen ) ,
43
+ description : buildDescription ( summary || htmlContent , descriptionMaxLen ) ,
44
44
}
45
45
46
46
const extraFields = getExtraEntryFields ( item )
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ const transform = (item, options) => {
31
31
} = item
32
32
33
33
const published = useISODateFormat ? toISODateString ( pubDate ) : pubDate
34
- const htmlContent = getText ( content || description )
34
+ const htmlContent = getText ( description || content )
35
35
const entry = {
36
36
id : getEntryId ( guid , link , pubDate ) ,
37
37
title : getText ( title ) ,
38
38
link : getPureUrl ( link , guid , baseUrl ) ,
39
39
published,
40
- description : buildDescription ( htmlContent || description , descriptionMaxLen ) ,
40
+ description : buildDescription ( description || htmlContent , descriptionMaxLen ) ,
41
41
}
42
42
43
43
const extraFields = getExtraEntryFields ( item )
You can’t perform that action at this time.
0 commit comments