Version 1
[yaffs-website] / vendor / sunra / php-simple-html-dom-parser / Src / Sunra / PhpSimple / HtmlDomParser.php
diff --git a/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/HtmlDomParser.php b/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/HtmlDomParser.php
new file mode 100644 (file)
index 0000000..4f3d013
--- /dev/null
@@ -0,0 +1,23 @@
+<?php\r
+\r
+namespace Sunra\PhpSimple;\r
+\r
+require 'simplehtmldom_1_5'.DIRECTORY_SEPARATOR.'simple_html_dom.php';\r
+\r
+class HtmlDomParser {\r
+       \r
+       /**\r
+        * @return \simplehtmldom_1_5\simple_html_dom\r
+        */\r
+       static public function file_get_html() {\r
+               return call_user_func_array ( '\simplehtmldom_1_5\file_get_html' , func_get_args() );\r
+       }\r
+\r
+       /**\r
+        * get html dom from string\r
+        * @return \simplehtmldom_1_5\simple_html_dom\r
+        */\r
+       static public function str_get_html() {\r
+               return call_user_func_array ( '\simplehtmldom_1_5\str_get_html' , func_get_args() );\r
+       }\r
+}
\ No newline at end of file