Strip html tags from text in csv export
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user