Commit f5683e35 authored by Phil Höfer's avatar Phil Höfer

Merge branch '781-quell-link-der-minisucher-zeigt-html-fragmente' into 'development'

Resolve "Quell-Link der Minisucher zeigt HTML-Fragmente"

Closes #781

See merge request !1289
parents 039683b7 93a1fae3
......@@ -60,12 +60,12 @@ class Minisucher extends Searchengine
$subcollection = $result->xpath('//doc/str[@name="subcollection"]')[0]->__toString();
if(!$subcollection) {
$gefVon = "<a href=\"https://metager.de\" target=\"_blank\" rel=\"noopener\">Minisucher: $minism </a>";
$gefVon = "Minisucher: $minism";
} else {
$minism = array_map('strtolower', explode(', ', $minism));
$subcollection = array_map('strtolower', explode(' ', $subcollection));
$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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment