Jump to content

Edit History

jesusroldan

jesusroldan


Problem solved

Hello everybody.

I am developing a module to be able to download custom data about the products to a CSV file. I find the problem when trying to insert the description (long) field in the CSV.

This field is added in the database as html text and stores newlines within itself, and this for a CSV file is a very bad thing, since it takes each newline as a new item.

I'm looking for a PHP or SQL function similar to strip_tags or trim to help me remove this line break before putting the information in the final CSV.

Thank you in advance for your help.

jesusroldan

jesusroldan

Hello everybody.

I am developing a module to be able to download custom data about the products to a CSV file. I find the problem when trying to insert the description (long) field in the CSV.

This field is added in the database as html text and stores newlines within itself, and this for a CSV file is a very bad thing, since it takes each newline as a new item.

I'm looking for a PHP or SQL function similar to strip_tags or trim to help me remove this line break before putting the information in the final CSV.

Thank you in advance for your help.

×
×
  • Create New...