summaryrefslogtreecommitdiff
path: root/example.php
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-04-02 21:48:31 -0500
committerMatt Butcher <[email protected]>2013-04-02 21:48:31 -0500
commit3133102be0aff4c1e7311ab5b318e2143cfe914f (patch)
treed34a40e044ff1309e0efcd0fbf3c97340f125611 /example.php
parent9b94d1062941ee0aba4fd7febdd15b31887ed750 (diff)
Added an example.
Diffstat (limited to 'example.php')
-rw-r--r--example.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/example.php b/example.php
new file mode 100644
index 0000000..8c37225
--- /dev/null
+++ b/example.php
@@ -0,0 +1,10 @@
+<?php
+
+require "vendor/autoload.php";
+
+
+$html = "<html><head><title>TEST</title></head><body>Hello World</body></html>";
+
+$dom = \HTML5\Parser::parse($html);
+
+print_r($dom);