I want to get rid of the \r\n and print input from the textarea box on my form. I'm using nl2br, but:
if(!empty($_POST['fieldname'])) {
$de = escape_data(nl2br($_POST['fieldname']));
} else {
$de = ' ';
}
just returns this:
Take two and call me
\r\nin the
\r\nmorning.
So, it's putting in the breaks, but not getting rid of the \r\n...
Help?