Remove all linebreaks from text for csv export
This commit is contained in:
@@ -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