Remove all linebreaks from text for csv export
This commit is contained in:
1 parent
fbc156e16b
commit
4b6bf27182
1 file changed
+1
-1
@@ -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, [
|
||||||
|
|||||||
Reference in new issue
Block a user