Registry / serialization / masterminds-html5

masterminds-html5

JSON →
library2.10.0phppackagistunverified

An HTML5 parser and serializer.

composer require masterminds/html5
INSTALL
IMPORT
SIG · MASTERMINDS-HTML5
M
masterminds-html5
serializationphpv2.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HTML5
use Masterminds\HTML5;

Parse an HTML5 string into a DOMDocument and serialize it back.

use Masterminds\HTML5; $html5 = new HTML5(); $dom = $html5->loadHTML('<html><body><p>Hello</p></body></html>'); echo $html5->saveHTML($dom);
Debug
Known issues
gotchaHTML5 parsing may be slower than native DOMDocument for simple HTML.
fix
Use native DOMDocument for strict XHTML or simple HTML4 documents.
affects: >=2.0.0
Upgrade
Version history
2.10.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
masterminds-html5 — pip install masterminds-html5 · libregistry