diff options
Diffstat (limited to 'scraper/ddg.php')
| -rw-r--r-- | scraper/ddg.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php index 9470415..49e0d37 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -1974,17 +1974,13 @@ class ddg{ if(count($tags) === 0){ - $description = [ + $description[] = [ "type" => "text", "value" => trim( $this->fuckhtml ->getTextContent( - substr( - $html, - $start, - $tag["startPos"] - $start - ), + $html, true, false ) |
