Similar issue, but going the 'other' way.
I've got <br> tags in my table data, but now I need to remove them so the code will echo as one line (for use in a javascript).
I've tried ereg_replace("<br>","", $field);
but that just strips out html, it doesnt pull out the \n
when I try to ereg_replace on \n, I get all sorts of errors...oh wait, it's a parse error. Perhaps this will work:
ereg_replace("\n", "", $field);
If I remember correctly, that will cancel the special function of the second .
Let's hope that works. Any replies would be helpful.