summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-05-15 14:01:08 -0400
committerMatt Farina <[email protected]>2013-05-15 14:01:08 -0400
commit7e8b07cb024b2cc857f19bb9ca7b0b59395e04ee (patch)
tree7f5db696f7138525c3ef4c1f41e1ca6d4dec3729
parent4ac18627abe1d60f0a675914cb91eec2b8f4bcb8 (diff)
Updated the README and example.php to the new html5 base api changes.
-rw-r--r--README.md5
-rw-r--r--example.php4
2 files changed, 2 insertions, 7 deletions
diff --git a/README.md b/README.md
index 3e1854f..d39612f 100644
--- a/README.md
+++ b/README.md
@@ -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";