diff options
author | Matt Farina <[email protected]> | 2013-05-15 14:01:08 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-05-15 14:01:08 -0400 |
commit | 7e8b07cb024b2cc857f19bb9ca7b0b59395e04ee (patch) | |
tree | 7f5db696f7138525c3ef4c1f41e1ca6d4dec3729 | |
parent | 4ac18627abe1d60f0a675914cb91eec2b8f4bcb8 (diff) |
Updated the README and example.php to the new html5 base api changes.
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | example.php | 4 |
2 files changed, 2 insertions, 7 deletions
@@ -38,11 +38,8 @@ $html = <<< 'HERE' </html> HERE; -// Create a new HTML5 parser. -$html5 = new HTML5(); - // Parse the document. $dom is a DOMDocument. -$dom = $html5->loadHTML($html); +$dom = HTML5::loadHTML($html); // Render it as HTML5: print HTML5::saveHTML($dom); diff --git a/example.php b/example.php index b4bc226..2694aa4 100644 --- a/example.php +++ b/example.php @@ -24,9 +24,7 @@ $html = <<< 'HERE' </body></html> HERE; -$html5 = new HTML5(); - -$dom = $html5->loadHTML($html); +$dom = \HTML5::loadHTML($html); print "Converting to HTML 5\n"; |