This code will take the code from a HTML Form ( <textarea cols="50" rows="10" name="body"> ) and keep the carriage returns and line spaces they used.
<?php
$body = $_POST['body'];
$body = str_replace(array("\r\n", "%0a %0d"), '<br>',
$body);
echo "body is $body";
?>