Skip to content

Commit

Permalink
changed way to get attributes in didom three
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-xz committed Jul 5, 2024
1 parent 167fd0e commit 13632b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Urls/Analyze.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private function getParams(UrlCheck $url): void
$document = new Document($url->getHtmlBody());
$h1 = $document->first('h1')?->text();
$title = $document->first('title')?->text();
$description = $document->first('meta[name=description]')?->content;
$description = $document->first('meta[name=description]')?->getAttribute('content');
$url->setH1($h1);
$url->setTitle($title);
$url->setDescription($description);
Expand Down

0 comments on commit 13632b3

Please sign in to comment.