Remove line break for csv import
<p>I have a text field in the database with datatype also as text. It holds comments and stuff. Now when I read this and export in a csv if it finds a new line in that comment such as</p>

<pre><code>This is a comment

This is another line
</code></pre>

<p>The csv import show "This is another line" in next line and thus mess up my data.</p>

<p>So far I have tried str_replace(), trim(). Still don't seem to do anything. I have looked for similar answers in stackoverflow but couldn't find one that suits my problem</p>

<p>Thanks</p>
