fix wikipedia crash

This commit is contained in:
lolcat 2025-08-10 21:55:15 -04:00
parent 2d63475b07
commit cdf958d293
1 changed files with 2 additions and 6 deletions

View File

@ -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
)