Skip to content
Snippets Groups Projects
Commit c046a6ca authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Anzeigelink weiter optimiert

parent 4f08b3c5
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -35,7 +35,7 @@ class Result
$this->titel = strip_tags(trim($titel));
$this->link = trim($link);
$this->anzeigeLink = trim($anzeigeLink);
$this->anzeigeLink = preg_replace("/http[s]{0,1}:\/\/(www\.){0,1}/si", "", $this->anzeigeLink);
$this->anzeigeLink = preg_replace("/(http[s]{0,1}:\/\/){0,1}(www\.){0,1}/si", "", $this->anzeigeLink);
$this->descr = strip_tags(trim($descr), '<p>');
$this->descr = preg_replace("/\n+/si", " ", $this->descr);
$this->longDescr = $this->descr;
......
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