Skip to content

Parser fails if HTML content contains a <script> tag with a URL inside it #6

@dionc

Description

@dionc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions