Remove all linebreaks from text for csv export

This commit is contained in:
Björn Fromme
2018-09-25 17:08:59 +02:00
parent fbc156e16b
commit 4b6bf27182
@@ -146,7 +146,7 @@ class ResellerController extends ActionController
} }
} }
$description = nl2br($product['description']); $description = preg_replace( "/\r|\n/", ' ', $product['description']);
$description = strip_tags($description); $description = strip_tags($description);
fputcsv($fileHandle, [ fputcsv($fileHandle, [