Skip to content

Commit

Permalink
Use filterXpath so filtering with CSS select is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 11, 2023
1 parent 561f296 commit 4d30ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checks/Content/TransitionWordRatioCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function check(Response $response, Crawler $crawler): bool

public function validateContent(Crawler $crawler): bool
{
$content = $crawler->filter('body')->text();
$content = $crawler->filterXPath('//body')->text();

$transitionWords = TransitionWords::getTransitionWordsOnly(config('seo.language'));

Expand Down

0 comments on commit 4d30ccf

Please sign in to comment.