From f259dfadd7781e829210ccd006a6abef9d5e0980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phil=20H=C3=B6fer?= Date: Fri, 12 Oct 2018 12:54:56 +0200 Subject: [PATCH] Remove HTML markup from ebay results. --- app/Models/parserSkripte/Ebay.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/parserSkripte/Ebay.php b/app/Models/parserSkripte/Ebay.php index 34ce8190..e4766cc2 100644 --- a/app/Models/parserSkripte/Ebay.php +++ b/app/Models/parserSkripte/Ebay.php @@ -32,15 +32,15 @@ class Ebay extends Searchengine $time = $result->{"listingInfo"}->{"endTime"}->__toString(); $time = date(DATE_RFC2822, strtotime($time)); $price = intval($result->{"sellingStatus"}->{"convertedCurrentPrice"}->__toString()) * 100; - $descr = "

Preis: " . $result->{"sellingStatus"}->{"convertedCurrentPrice"}->__toString() . " €

"; - $descr .= "

Versandkosten: " . $result->{"shippingInfo"}->{"shippingServiceCost"}->__toString() . " €

"; + $descr = "Preis: " . $result->{"sellingStatus"}->{"convertedCurrentPrice"}->__toString() . " €"; + $descr .= ", Versandkosten: " . $result->{"shippingInfo"}->{"shippingServiceCost"}->__toString() . " €"; if (isset($result->{"listingInfo"}->{"listingType"})) { - $descr .= "

Auktionsart: " . $result->{"listingInfo"}->{"listingType"}->__toString() . "

"; + $descr .= ", Auktionsart: " . $result->{"listingInfo"}->{"listingType"}->__toString(); } - $descr .= "

Auktionsende: " . $time . "

"; + $descr .= ", Auktionsende: " . $time; if (isset($result->{"primaryCategory"}->{"categoryName"})) { - $descr .= "

Kategorie: " . $result->{"primaryCategory"}->{"categoryName"}->__toString() . "

"; + $descr .= ", Kategorie: " . $result->{"primaryCategory"}->{"categoryName"}->__toString(); } $image = $result->{"galleryURL"}->__toString(); -- GitLab