jacktuck / unfurl

Metadata scraper with support for oEmbed, Twitter Cards and Open Graph Protocol for Node.js :zap:
MIT License
474 stars 51 forks source link

[Bug]: SoundCloud oEmbed is not returning any html content #97

Closed adrian-seijo closed 1 year ago

adrian-seijo commented 1 year ago

PR: https://github.com/jacktuck/unfurl/pull/96

I was playing around with SoundCloud urls on unfurl and I noticed that they don't return any html content currently while they do for other attributes.

The issue seems to be that they are escaping the html content with a CDATA and that trips the logic that extracts the content.

I have raised a PR that will fix that by checkign for that scenario and clearing that CDATA.

Hopefully that will solve the issue, feel free to close this if you consider it irrrelevant sicne we have a PR but I just wanted to leave something written on an issue in case someone comes in the future asking why this was done :D

jacktuck commented 1 year ago

Fixed in #98. Thanks Adrian!