Elektrine lite

← Feed

@Crell@phpc.social

2026-06-09 20:59 UTC

@len@toot.si Try the new HTML 5 friendly parser in PHP 8.5. I'm not sure if it has special class handling, but it's what you should be using for parsing HTML these days.

Replies (1)

  • @len@toot.si 2026-06-10 10:37

    @Crell@phpc.social Thank you, for reply. I watched your talk yesterday on #phpverse It was great! You probably mean https://www.php.net/manual/en/class.dom-htmldocument.php and Dom/Xpath. I had the same problem there, and I switched back to 8.3 before finding out my error. I'll write some comments to php.net to let others, with same presumptions as me, know.

    Open ##5038421