Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parsing #303

Open
6562680 opened this issue Jul 28, 2022 · 0 comments
Open

Incorrect parsing #303

6562680 opened this issue Jul 28, 2022 · 0 comments

Comments

@6562680
Copy link

6562680 commented Jul 28, 2022

$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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant