urlEncode($metager->getEingabe()), "%") !== false) { $this->enabled = false; return null; } } public function loadResults($result) { $result = utf8_encode($result); $counter = 0; foreach (explode("\n", $result) as $line) { $line = trim($line); if (strlen($line) > 0) { # Hier bekommen wir jedes einzelne Ergebnis $result = explode("|:|", $line); $link = $result[1]; $link = substr($link, strpos($link, "href=\"") + 6); $link = substr($link, 0, strpos($link, "\"")); $counter++; $this->gefVon = "homepage . "\" target=\"_blank\">" . $this->displayName . " " . trans('results.redirect') . ""; $this->results[] = new \App\Models\Result( $this->engine, trim(strip_tags($result[1])), $link, $result[3], $result[2], $this->gefVon, $counter ); } } } }