Skip to content
Snippets Groups Projects
Commit 93a1fae3 authored by Phil Höfer's avatar Phil Höfer
Browse files

HTML aus Minisucher-Quellenangabe entfernt

parent 039683b7
No related branches found
No related tags found
1 merge request!1289Resolve "Quell-Link der Minisucher zeigt HTML-Fragmente"
...@@ -60,12 +60,12 @@ class Minisucher extends Searchengine ...@@ -60,12 +60,12 @@ class Minisucher extends Searchengine
$subcollection = $result->xpath('//doc/str[@name="subcollection"]')[0]->__toString(); $subcollection = $result->xpath('//doc/str[@name="subcollection"]')[0]->__toString();
if(!$subcollection) { if(!$subcollection) {
$gefVon = "<a href=\"https://metager.de\" target=\"_blank\" rel=\"noopener\">Minisucher: $minism </a>"; $gefVon = "Minisucher: $minism";
} else { } else {
$minism = array_map('strtolower', explode(', ', $minism)); $minism = array_map('strtolower', explode(', ', $minism));
$subcollection = array_map('strtolower', explode(' ', $subcollection)); $subcollection = array_map('strtolower', explode(' ', $subcollection));
$result = implode(', ', array_intersect($subcollection, $minism)); $result = implode(', ', array_intersect($subcollection, $minism));
$gefVon = "<a href=\"https://metager.de\" target=\"_blank\" rel=\"noopener\">Minisucher: $result </a>"; $gefVon = "Minisucher: $result";
} }
$this->results[] = new \App\Models\Result( $this->results[] = new \App\Models\Result(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment