Modern DOM library written in PHP for HTML documents
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dustin Wilson 85cc8c1aa3 Added authors file and updated license 6 years ago
lib Remove unnecessary breaks in Tokenizer 6 years ago
.gitignore Started HTML content tree building 6 years ago
AUTHORS Added authors file and updated license 6 years ago
LICENSE Added authors file and updated license 6 years ago
README.md Have Parser destroy its instance when finished 6 years ago
composer.json Document more requirements 6 years ago
composer.lock Begin Implementation of Tree Builder 6 years ago

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