summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index d616c50..3e1854f 100644
--- a/README.md
+++ b/README.md
@@ -38,8 +38,11 @@ $html = <<< 'HERE'
</html>
HERE;
+// Create a new HTML5 parser.
+$html5 = new HTML5();
+
// Parse the document. $dom is a DOMDocument.
-$dom = HTML5::parse($html);
+$dom = $html5->loadHTML($html);
// Render it as HTML5:
print HTML5::saveHTML($dom);