We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b95d51c commit 3f72b28Copy full SHA for 3f72b28
bin/html5-parse.php
@@ -0,0 +1,10 @@
1
+<?php
2
+require_once dirname(__FILE__) . '/../library/HTML5/Parser.php';
3
+$argv = $_SERVER['argv'];
4
+if (!isset($argv[1])) {
5
+ $file = 'php://stdin';
6
+} else {
7
+ $file = $argv[1];
8
+}
9
+$result = HTML5_Parser::parse(file_get_contents($file));
10
+// nop
0 commit comments