Modern DOM library written in PHP for HTML documents
Find a file
2020-09-20 09:30:25 -04:00
lib Fix bug uncovered by new tests 2020-09-17 09:12:14 -04:00
tests Patch tests based on input not unstable identifier 2020-09-17 09:10:32 -04:00
vendor-bin Relax dependence on ctype 2019-12-24 09:38:42 -05:00
.gitignore Character reference fixes 2019-12-16 23:41:44 -05:00
AUTHORS Added authors file and updated license 2018-08-03 23:21:15 -05:00
composer.json Relax dependence on ctype 2019-12-24 09:38:42 -05:00
composer.lock Relax dependence on ctype 2019-12-24 09:38:42 -05:00
LICENSE Added authors file and updated license 2018-08-03 23:21:15 -05:00
README.md Organization 2018-09-11 09:54:46 -05:00
robo Basic skeleton of test suite 2019-12-10 18:00:08 -05:00
robo.bat Basic skeleton of test suite 2019-12-10 18:00:08 -05:00
RoboFile.php Support PCOV for coverage 2020-09-20 09:30:25 -04:00

HTML5

Tools for parsing and printing HTML5 documents and fragments.

<?php
$dom = dW\HTML5\Parser::parse('<!DOCTYPE html><html lang="en" charset="utf-8"><head><title>Ook!</title></head><body><h1>Ook!</h1><p>Ook-ook? Oooook. Ook ook oook ook oooooook ook ooook ook.</p><p>Eek!</p></body></html>');
?>

or:

<?php
$dom = new dW\HTML5\Document;
$dom->loadHTML('<!DOCTYPE html><html lang="en" charset="utf-8"><head><title>Ook!</title></head><body><h1>Ook!</h1><p>Ook-ook? Oooook. Ook ook oook ook oooooook ook ooook ook.</p><p>Eek!</p></body></html>');
?>