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

Symbol "{" inside meta tag content attribute partially breaks the parser #292

Open
yalexwander opened this issue Oct 19, 2021 · 1 comment

Comments

@yalexwander
Copy link

When HTML document contains a fragment like:

<meta property="og:description" content="Route::register( [ '/' =&gt; 'Home', '/user/$id/profile' =&gt; function ($id) {echo &quot;Вы указали &quot; . (int) $id . &quot; в адре...">

It makes parsing the document incorrect - some nodes disappears. See test files and test runner in my repo:
https://github.com/yalexwander/php-html-parser-bug-example

I'm not even sure if it is a bug or expected behavior.

@fsa
Copy link

fsa commented Jan 8, 2023

Confirm.

<h4><a href="URL" title="Просмотр профиля }I{eKa">}I{eKa</a></h4>

Part of the text is missing and the logic on the { sign is broken.

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

2 participants