I collect emails from my mailserver with imap_mail (php), explode the result and save it to database after using mysql_real_escape_string.
If I display it in a textarea after retrieving from db, all linefeeds are gone or replaced by \r etc.
without mysql_real_escape_string they are displayed.
How do I get them back if I escape? Or rather, as I do not have access to that part of the php code that display in the text area: how do I protect the strings from sql injection so that linefeeds are still shown?
many thanks,
Klaus