Skip to content

v2.0.1: Edge case fixes

Choose a tag to compare

@rolandschuetz rolandschuetz released this 30 Sep 22:43
· 3 commits to main since this release

Bug fixes

  • Fix: No error when HTML property is empty or whitespace (prevents “DOMDocument::loadHTML(): Argument #1 must not be empty”).
  • Fix: No false “autofixed closing tags” notice for plain text and valid inline SVG; only fatal libxml issues are treated as invalid; benign warnings (incl. unknown tag 801) are ignored.
  • Improvement: More robust post-processing (cleans libxml error buffer, restores state, safer body extraction) with proper handling of mixed HTML + inline SVG.