-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feed.xml link field parsing error #111
Comments
@neizod https://www.historyinmemes.com/feed This feed link actually has body content, but the feed extractor only displays a thumbnail text. How can this format be displayed in its entirety? Can you help me? |
@0x1017 you can use parserOptions parameter to customize the output. For example, if you turn off const feed = await extract('https://www.historyinmemes.com/feed', {
normalization: false,
})
console.log(feed) If you still want to normalize feed data, let's use const feed = await extract(url, {
getExtraEntryFields: (feedEntry) => {
const { description } = feedEntry
// you can do anything with the description here
return {
description,
}
},
})
console.log(feed) |
After some research, I found that the problem is in the await extract(url, {
normalization: false, xmlParserOptions: {
tagValueProcessor: (tagName, tagValue) => {
if (tagName === 'link') return tagValue.replace(/&/g, '&')
return tagValue
}
}
}) |
https://stephango.com/feed.xml
link field parsing error
The text was updated successfully, but these errors were encountered: