Repository navigation
v0.0.19
Added
DOMinator::readnow 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.