Closed handhikadj closed 3 years ago
$dom = new Dom(); $dom->loadStr($str); $imgTags = $dom->getElementsByTag('img'); foreach ($imgTags as $imgTag) { dump($imgTag); // <-- Laravel's dump }
I can't find a way to get the raw html of each tag
solved. using outerHtml
outerHtml
I can't find a way to get the raw html of each tag