-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Resolve deprecations #424
Comments
There are many solutions online, but none of them seem to appreciate that some developers put 🌮 emoji 🥕 in their HTML, or even simple things like "Polski jest pięknym językiem". My solution: $html = mb_encode_numericentity(
$html,
[0x80, 0x10FFFF, 0, -1],
"UTF-8"
); |
Hello @g105b, I hope you are doing good! I have a query regarding this issue, there is any plan to fixed in upcoming near because we are planing to use latest version of "phpgt/dom" in magento side. In last release we have provided the fix for the same - #412 and you had released v2 new release and we are using "phpgt/dom":"^2.2.4". Can you please have a look and help us in this regard? |
Hi @glo71317, I'm doing great, thanks. Hope everything is going well with you too. It's fantastic to hear Magento are switching to the latest version. There are plenty of nice new features, and performance increases since v2. The issue #412 was fixed as a backport to v2 to support users of that version. There are tests covering multi-byte strings and unicode characters, and I've just added the specific Please can you test your code with the Let me know how you get on. If there's any tweaks the repository needs, please share your findings here and I'll happily apply any fixes to help you get on to the latest version. |
@g105b Thanks lot for quick reply! I will have a look and will update you tomorrow. |
@g105b I have reviewed your PR changes, Changes are looks fine to me and also you can keep escaped characters unit tests which are required to test some scenarios. I have one question regarding this change - https://github.com/PhpGt/Dom/blob/v4.1.2/src/HTMLDocument.php#L36 because we had delivered https://github.com/PhpGt/Dom/blob/v2.2.4/src/HTMLDocument.php#L35C1-L40 which is tested at our end properly. Can you please confirm about this changes - https://github.com/PhpGt/Dom/blob/v4.1.2/src/HTMLDocument.php#L36 is tested at your end or not? Note - Testing in progress with your PR changes, we are facing some issue once it will be complete i will notify you. |
The loadHTML functionality, with the flags Keep me updated and have a good day. |
Hi @glo71317, I've just made a new patch release to the library: https://github.com/PhpGt/Dom/releases/tag/v4.1.3 This includes the aforementioned PR, and some rather small changes. Please feed back your experience with this release and I'll be here if you need me. Cheers, |
@g105b Thanks for releasing the new patch. I am working on BIC issue after updating the latest version of "phpgt/dom". So it may required time to resolve. Surely, i will catch you if any help will require. Thanks, |
Great. Feel free to reach out whenever you need any help. I'd like to hear about your success too, not just anything negative 😄 Speak soon and have fun! |
Hello @g105b Greeting for the day! I had tried to update the latest version- "phpgt/dom": "^4.1.3" which is released few days back. From Magento side, several third party dependency are using "psr/http-message": "^1.0" So, i don't know it will be possible or not from your end. |
Thanks for letting me know. There's nothing Dom relies on in 2.0 that can't be satisfied by 1.0, so I'll get that changed and make a patch release for you. |
Great and Thanks to you for understanding! |
In PHP 8.2, the following deprecations are emitted:
The text was updated successfully, but these errors were encountered: