Skip to content

Infinite loop when parsing invalid HTML #187

@PWalkow

Description

@PWalkow

I found a piece of invalid html that is causing infinite loop (and maximum execution time issues).
similiar issue was #179 that was closed already but this example shows that similiar cases exist, how we could fix it without having access to change the html?

<img src="www.example.com/image.jpg" data-caption="How did <i>

I understand it is an invalid html but the parser should not stuck when trying to parse it and fail gracefully rather than causing infinite execution time

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions