|
...
|
...
|
@@ -266,10 +266,8 @@ class Demo extends Command |
|
|
|
// }
|
|
|
|
public function handle(){
|
|
|
|
$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_node(); //new simple_html_dom对象</p><p>
|
|
|
|
$domHtml = $dom->load($html);
|
|
|
|
$texts = $domHtml->find('a[class=logo]',0);
|
|
|
|
$dom = str_get_html($html);
|
|
|
|
$texts = $dom->find('a',0);
|
|
|
|
// $texts = $dom->find('a', 0);
|
|
|
|
dd($texts);
|
|
|
|
// $projectModel = new Project();
|
...
|
...
|
|