Skip to content

v0.0.19

Choose a tag to compare

@daniesy daniesy released this 21 May 11:17
· 6 commits to main since this release

Added

  • DOMinator::read now accepts an optional preprocess callback argument. This allows you to modify or filter the HTML string before parsing, enabling advanced use cases such as sanitization, macro expansion, or custom pre-processing.
  • Comprehensive tests ensure the callback is called, can modify the HTML, and can return empty content.

This feature increases flexibility for users who need to preprocess HTML before DOMinator parses it.