Strip html tags from text in csv export

This commit is contained in:
Björn Fromme
2018-09-25 15:20:06 +02:00
parent 29b9782b1e
commit d1bac027eb
@@ -135,11 +135,14 @@ class ResellerController extends ActionController
}
}
$description = nl2br($product['description']);
$description = strip_tags($description);
fputcsv($fileHandle, [
$product['@id'],
'in stock',
'new',
$product['description'],
$description,
$product['images']['image'][0],
$product['link'],
$product['name'],