Skip to content

v2.0.0

Latest

Choose a tag to compare

@damienalexandre damienalexandre released this 24 Sep 19:06
· 7 commits to main since this release

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 &eacute;), 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