Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Html5 Laravel Package

masterminds/html5

HTML5-PHP is a standards-compliant HTML5 parser and serializer written entirely in PHP. It includes both a DOM tree builder and an event-based SAX-like parser, supports PHP namespaces and Composer, interoperates with QueryPath, and requires PHP 7.4+. Stable and widely used in production.

View on GitHub
Deep Wiki
Context7
2.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/Masterminds/html5-php/compare/2.10.1...2.11.0

2.10.1

What's Changed

New Contributors

Full Changelog: https://github.com/Masterminds/html5-php/compare/2.10.0...2.10.1

2.10.0
2.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/Masterminds/html5-php/compare/2.8.1...2.9.0

2.8.1

What's Changed

New Contributors

Full Changelog: https://github.com/Masterminds/html5-php/compare/2.8.0...2.8.1

2.7.6
  • #218: Address comment handling issues
2.7.5
  • #204: Travis: Enable tests on PHP 8.0
  • #207: Fix PHP 8.1 deprecations
2.7.4
  • #191: Fix travisci build
  • #195: Add .gitattributes file with export-ignore rules
  • #194: Fix query parameter parsed as character entity
2.7.3
  • #190: mitigate cyclic reference between output rules and the traverser objects
2.7.2
  • Fixed memory leak in HTML5::saveHTML() #187
  • Add special case for end tag </br> #186
2.7.1
  • add PHP 7.4 job #171
  • Prevent infinite loop on un-terminated entity declaration at EOF #178
2.7.0
  • #164: Drop HHVM support
  • #168: Set default encoding in the DOMDocument object
2.6.0
  • #163: Allow to pass a charset to the Scanner
2.5.0

This release brings again big performance improvements (thanks @stof for the excellent work).

v2.5 is 3.5 times faster than v2.4 and 11 times faster than v2.3!

Here a list of the changes:

  • #162, #161, #155, #154, #153, #151: performance improvements
  • #156: fixed typos
  • #160: adopt and enforce code style
  • #159: remove deprecated php unit base test case
  • #150: backport changes from old master branch
2.4.0

This release brings big performance improvements (thanks @tgalopin for the excellent work).

Based on the test/benchmark/run.php benchmark, 2.4.0 is 2x faster than 2.3.1 when parsing HTML5 documents.

Here a list of the changes:

  • #148: Improve performance by moving sequence matching
  • #147: Improve the Tokenizer performance
  • #146: Improve performance by relying on a native string instead of InputStream
  • #144: Add DOM extension in composer.json
  • #145: Add more extensions on composer.json, improve phpdocs and remove dead code
  • #143: Remove experimental comment
2.3.1
  • #121: Audio is not a block tag (fixed by #141)
  • #136: Handle illegal self-closing according to spec (fixed by #137)
  • #141: Minor fixes in the README
2.3.0
  • #129: image within inline svg breaks system (fixed by #133)
  • #131: ² does not work (fixed by #132)
  • #134: Improve tokenizer performance by 20% (alternative version of #130 thanks to @MichaelHeerklotz)
  • #135: Raw & in attributes
2.2.2
  • #116: In XML mode, tags are case sensitive
  • #115: Fix PHP Notice in OutputRules
  • #112: fix parsing of options of an optgroup
  • #111: Adding test for the address tag
2.2.1
  • #109: Fixed issue where address tag could be written without closing tag
2.2.0
  • #105: Enable composer cache (for CI/CD)
  • #100: Use mb_substitute_character inset of ini_set for environments where ini_set is disable (e.g., shared hosting)
  • #98: Allow link, meta, style tags in noscript tags
  • #96: Fixed xml:href on svgs that use the "use" breaking
  • #94: Counting UTF8 characters performance improvement
  • #93: Use newer version of coveralls package
  • #90: Remove duplicate test
  • #87: Allow multiple root nodes
2.1.2
  • #82: Support for PHP7
  • #84: Improved boolean attribute handling
2.1.1
  • #78: Fixes bug where unmatched entity like string drops everything after &.
2.1.0
  • #74: Added disable_html_ns and target_doc dom parsing options
  • Unified option names
  • #73: Fixed alphabet, ß now can be detected
  • #75 and #76: Allow whitespace in RCDATA tags
  • #77: Fixed parsing blunder for json embeds
  • #72: Add options to HTML methods
1.0.7

#77 Don't output anything on parse (Serializer bug)

2.0.2
  • closed #50 (empty document handling)
  • closed #63 (tags with strange capitalization)
  • closed #65 (dashes and underscores as allowed characters in tag names)
  • closed #68 (non inline elements inside inline containers)
2.0.1
  • Closed #59
  • Closed #56
  • Sami as new documentation generator
2.0.0
  • #53: Improved boolean attributes handling
  • #52: Facebook HHVM compatibility
  • #48: Adopted PSR-2 as coding standard
  • #47: Moved everything to Masterminds namespace
  • #45: Added custom namespaces
  • #44: Added support to XML-style namespaces
  • #37: Refactored HTML5 class removing static methods
1.0.5
  • #38: Set the dev-master branch as the 1.0.x branch for composer (goetas)
  • #34: Tests use PSR-4 for autoloading. (goetas)
  • #40, #41: Fix entity handling in RCDATA sections. (KitaitiMakoto)
  • #32: Fixed issue where wharacter references were being incorrectly encoded in style tags.
1.0.4
  • #30/#31 Don't throw an exception for invalid tag names.
1.0.3

This is a bugfix release to handle:

  • #23 and #29: Ignore attributes with illegal chars in name for the PHP DOM.
1.0.2
  • #23: Handle missing tag close in attribute list.
  • #25: Fixed text escaping in the serializer (HTML% 8.3).
  • #27: Fixed tests on Windows: changed "\n" -> PHP_EOL.
  • #28: Fixed infinite loop for char "&" in unquoted attribute in parser.
  • #26: Updated tag name case handling to deal with uppercase usage.
  • #24: Newlines and tabs are allowed inside quoted attributes (HTML5 8.2.4).
  • Fixed Travis CI testing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator