The title says it all... I have just added mysql_real_escape_string to my _POST parsing function, and it breaks \n, making nl2br() completely unable to read them... And according to php.net:
Note that mysql_real_escape_string doesn't prepend backslashes to \x00, \n, \r, and and \x1a as mentionned in the documentation, but actually replaces the character with a MySQL acceptable representation for queries (e.g. \n is replaced with the '\n' litteral). (\, ', and " are escaped as documented) This doesn't change how you should use this function, but I think it's good to know.
So how do I fix this? I've looked around quite a bit but can't find anything