|
...
|
...
|
@@ -268,8 +268,8 @@ class Demo extends Command |
|
|
|
$html = '<div><a>23423424</a><a href="#" class="logo img-box"><img src="https://cdn.globalso.com/fiberglass-expert/logo.png" alt="logoz9j"></a></div>';
|
|
|
|
$html = str_get_html($html);
|
|
|
|
$dom = new \simple_html_dom(); //new simple_html_dom对象</p><p>
|
|
|
|
$texts = $dom->load($html);
|
|
|
|
// $texts = $dom->find("a[class=logo]",0);
|
|
|
|
$domHtml = $dom->load($html);
|
|
|
|
$texts = $domHtml->find("a[class=logo]",0);
|
|
|
|
// $texts = $dom->find('a', 0);
|
|
|
|
dd($texts);
|
|
|
|
// $projectModel = new Project();
|
...
|
...
|
|