Modern DOM library written in PHP for HTML documents
Dustin Wilson
c414f3dbfa
Moved the stack of open elements to its own class OpenElementsStack and made it and ActiveFormattingElementsList inherit from an abstract Stack class. |
||
---|---|---|
lib | ||
.gitignore | ||
AUTHORS | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
README.md |
HTML5 Parser
A parser for HTML5 written in php. Extremely easy to use. Accepts a string as input and outputs a DOMDocument.
<?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>');
?>