Repository navigation
Releases: daniesy/DOMinator
Releases · daniesy/DOMinator
Release list
v0.0.24
Preserve special characters in attribute values
- Remove trim() to preserve leading whitespace in HTML
- Only escape double quotes in attribute values (HTML5 allows bare <, >, & in quoted attributes)
- Update XML/DOCTYPE regex to handle optional leading whitespace
- Add tests for special characters and empty attributes
v0.0.23
v0.0.22
v0.0.21
v0.0.20
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.