OG
OG copied to clipboard
Parser fails if HTML content contains a <script> tag with a URL inside it
When testing OG we found that it failed to parse many websites that contain valid OpenGraph tags. We debugged it and found that the built-in Parser object fails to parse when it finds a script tag containing a web link, eg: <script>{"@context":"http://schema.org" … }</script>.
Here's an example URL that demonstrates the problem: https://medium.com/@Skyscanner/this-is-why-you-need-to-turn-your-teams-into-squads-and-tribes-and-how-skyscanner-growth-did-it-734ea987b299
When OG encounters this issue it fails parsing entirely and doesn't return any meta data.