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

decoding html entities

parent 7bcdf9cc
No related branches found
No related tags found
3 merge requests!1895Development,!1797Development,!1796Resolve "ad contains html tag"
...@@ -35,10 +35,10 @@ class Overture extends Searchengine ...@@ -35,10 +35,10 @@ class Overture extends Searchengine
$this->totalResults = $resultCount; $this->totalResults = $resultCount;
$results = $content->xpath('//Results/ResultSet[@id="inktomi"]/Listing'); $results = $content->xpath('//Results/ResultSet[@id="inktomi"]/Listing');
foreach ($results as $result) { foreach ($results as $result) {
$title = $result["title"]; $title = html_entity_decode($result["title"]);
$link = $result->{"ClickUrl"}->__toString(); $link = $result->{"ClickUrl"}->__toString();
$anzeigeLink = $result["siteHost"]; $anzeigeLink = $result["siteHost"];
$descr = $result["description"]; $descr = html_entity_decode($result["description"]);
$this->counter++; $this->counter++;
$this->results[] = new \App\Models\Result( $this->results[] = new \App\Models\Result(
$this->engine, $this->engine,
...@@ -56,10 +56,10 @@ class Overture extends Searchengine ...@@ -56,10 +56,10 @@ class Overture extends Searchengine
# Nun noch die Werbeergebnisse: # Nun noch die Werbeergebnisse:
$ads = $content->xpath('//Results/ResultSet[@id="searchResults"]/Listing'); $ads = $content->xpath('//Results/ResultSet[@id="searchResults"]/Listing');
foreach ($ads as $ad) { foreach ($ads as $ad) {
$title = $ad["title"]; $title = html_entity_decode($ad["title"]);
$link = $ad->{"ClickUrl"}->__toString(); $link = $ad->{"ClickUrl"}->__toString();
$anzeigeLink = $ad["siteHost"]; $anzeigeLink = $ad["siteHost"];
$descr = $ad["description"]; $descr = html_entity_decode($ad["description"]);
$this->counter++; $this->counter++;
$this->ads[] = new \App\Models\Result( $this->ads[] = new \App\Models\Result(
$this->engine, $this->engine,
......
...@@ -27,10 +27,10 @@ class OvertureAds extends Searchengine ...@@ -27,10 +27,10 @@ class OvertureAds extends Searchengine
$ads = $content->xpath('//Results/ResultSet[@id="searchResults"]/Listing'); $ads = $content->xpath('//Results/ResultSet[@id="searchResults"]/Listing');
foreach ($ads as $ad) { foreach ($ads as $ad) {
$title = $ad["title"]; $title = html_entity_decode($ad["title"]);
$link = $ad->{"ClickUrl"}->__toString(); $link = $ad->{"ClickUrl"}->__toString();
$anzeigeLink = $ad["siteHost"]; $anzeigeLink = $ad["siteHost"];
$descr = $ad["description"]; $descr = html_entity_decode($ad["description"]);
$this->counter++; $this->counter++;
$this->ads[] = new \App\Models\Result( $this->ads[] = new \App\Models\Result(
$this->engine, $this->engine,
......
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