From fa4125d63b212811a5ae8b2c2227abffbd92a049 Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Wed, 26 Jul 2023 12:38:41 +0200 Subject: [PATCH] Prestashop: strip html tags from short description --- www/pages/shopimporter_presta.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/pages/shopimporter_presta.php b/www/pages/shopimporter_presta.php index 9bc5be23..a698dca4 100644 --- a/www/pages/shopimporter_presta.php +++ b/www/pages/shopimporter_presta.php @@ -355,8 +355,8 @@ class Shopimporter_Presta extends ShopimporterBase $res['name_en'] = $names['en']; $res['uebersicht_de'] = $descriptions['de']; $res['uebersicht_en'] = $descriptions['en']; - $res['kurztext_de'] = $shortdescriptions['de']; - $res['kurztext_en'] = $shortdescriptions['en']; + $res['kurztext_de'] = strip_tags($shortdescriptions['de']); + $res['kurztext_en'] = strip_tags($shortdescriptions['en']); $res['preis_netto'] = strval($product->product->price); $res['hersteller'] = strval($product->product->manufacturer_name); $res['ean'] = strval($product->product->ean13);