Strip html tags from text in csv export
This commit is contained in:
1 parent
29b9782b1e
commit
d1bac027eb
1 file changed
+4
-1
@@ -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