couldn't get trim() to work and still not sure why...that was what i initially tried and failed. then tried again after you suggested it and just couldnt get my script to do it. 😕
however, str_replace() did the trick.
it didn't seem to like this syntax though:
$content = str_replace("\r","",$content);
this syntax did work
$x;
$br = "<br>";
$content = str_replace("\r",$x,$content);
$content = str_replace("\n",$br,$content);
Thanks for the suggestions, managed to wrap up that project thanks to the feedback.