Skip to content

Incorrect parsing #303

@gzhegow1991

Description

@gzhegow1991
$html = '<a href="#">text (text &lt; ...)</a>'; // i guess from server i receive not `&lt;` but `<` cus of developer hadn't escaped output, and it will cause fail or inside children pointer or inside text node

Parsed to:

strval($dom); // '<a href="#">text (text </a>'

Seems good if just trim invalid symbol, but my parser returns "->nextChild()" not found.

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