-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: support for CDATA in oembed #98
Conversation
…/master * 'master' of github.com:jacktuck/unfurl: chore: update linter config
Test
|
…/master * 'master' of github.com:jacktuck/unfurl: chore: sort out the lock files chore: run tests on all LTS node versions
@adrian-seijo let me know what you think. I couldn't resist some refactoring so I'll comment on the relevant line changes. |
}, | ||
}); | ||
{ | ||
recognizeCDATA: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tells html parser to look for cdata tags
content.html = ""; | ||
const parser = new Parser( | ||
{ | ||
oncdataend: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we pass recognizeCDATA
we can add a oncdataend
handler which will get called when the cdata tag closes.
* next: Add support for Header options instead of separate userAgent and acceptLanguage options Add support for Accept-Language header
BREAKING CHANGE: changes to parser * feat: Add support for Accept-Language header * fix: support for CDATA in oembed (#98) Co-authored-by @adrian-seijo Co-authored-by: Stef Kors <stef@beamapp.co>
Definetively a better approach, love that 5 major version bump of the parser 😜 Thanks for the release! |
No description provided.