Skip to content

Releases: daniesy/DOMinator

v0.0.24

Choose a tag to compare

@daniesy daniesy released this 10 Dec 18:56

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

Choose a tag to compare

@daniesy daniesy released this 24 Sep 16:52

Better attributes parsing and quotes/double-quotes support

v0.0.22

Choose a tag to compare

@daniesy daniesy released this 24 Sep 16:34

Fixed the quotes

v0.0.21

Choose a tag to compare

@daniesy daniesy released this 01 Sep 22:12

Fixed the <br> bug

v0.0.20

Choose a tag to compare

@daniesy daniesy released this 31 Aug 22:44

Fixed new lines

v0.0.19

Choose a tag to compare

@daniesy daniesy released this 21 May 11:17

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.

v0.0.18

Choose a tag to compare

@daniesy daniesy released this 21 May 10:19

Fixes and improvements

v0.0.17

Choose a tag to compare

@daniesy daniesy released this 20 May 22:49

Fixed

  • Attribute parser now supports complex attribute names containing @, ., :, -, and _ (e.g. @click.prevent, data-test:foo).
  • This improves compatibility with modern frontend frameworks and custom attribute syntaxes.

v0.0.16

Choose a tag to compare

@daniesy daniesy released this 20 May 22:36

Added &nbsp; support

v0.0.15

Choose a tag to compare

@daniesy daniesy released this 20 May 22:30

Added html character support and escaping.