New HTML parser π
PHP 8.4 brings a new \Dom\HTMLDocument, much better than the previous DomDocument. Version 2.0.0 bring this new parser with some side effects:
- a complete document is now fixed and returned with its doctype,
<html>,<head>and<body>; - fixed HTML is always UTF-8: non-ASCII characters are no longer replaced by HTML entities (
Γ©instead ofé), and the output no longer depends on the libxml version.
What's Changed
- Add the UnicodeNormalization fixer to the demo website by @lyrixx in #146
- Require PHP 8.4 and use its features by @lyrixx in #144
- Run the test suite on PHPUnit 13 without symfony/phpunit-bridge by @lyrixx in #145
- Parse HTML with \Dom\HTMLDocument and keep whole documents (PHP 8.4) by @lyrixx in #142
Full Changelog: v1.8.0...v2.0.0