Modern DOM library written in PHP for HTML documents
Find a file
Dustin Wilson c414f3dbfa Changed Stack to abstract class
Moved the stack of open elements to its own class OpenElementsStack and made it and ActiveFormattingElementsList inherit from an abstract Stack class.
2018-08-22 09:11:07 -05:00
lib Changed Stack to abstract class 2018-08-22 09:11:07 -05:00
.gitignore Started HTML content tree building 2018-07-26 16:30:29 -05:00
AUTHORS Added authors file and updated license 2018-08-03 23:21:15 -05:00
composer.json Document more requirements 2018-03-21 14:16:25 -04:00
composer.lock Begin Implementation of Tree Builder 2018-04-08 10:46:30 -05:00
LICENSE Added authors file and updated license 2018-08-03 23:21:15 -05:00
README.md Have Parser destroy its instance when finished 2018-08-03 16:57:51 -05:00

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>');
?>