Hi.
I have a piece of code here that is really screwing things up. When a user posts a message on my site that contains a newline/carriage return, it's rendered on the site as '/r/n'
Here's the piece I think is doing this. Anyone got a tip?
$string = preg_replace("/(\015\012)|(\015)|(\012)/","<br />",$string);
$string = str_replace("<br /><br><br />","<br />",$string);
return $string;
Thanks