HtmlDomParser.php 540 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Sunra\PhpSimple;
  3. require 'simplehtmldom_1_5'.DIRECTORY_SEPARATOR.'simple_html_dom.php';
  4. class HtmlDomParser {
  5. /**
  6. * @return \simplehtmldom_1_5\simple_html_dom
  7. */
  8. static public function file_get_html() {
  9. return call_user_func_array ( '\simplehtmldom_1_5\file_get_html' , func_get_args() );
  10. }
  11. /**
  12. * get html dom from string
  13. * @return \simplehtmldom_1_5\simple_html_dom
  14. */
  15. static public function str_get_html() {
  16. return call_user_func_array ( '\simplehtmldom_1_5\str_get_html' , func_get_args() );
  17. }
  18. }