Forum Moderators: open
I have managed to eliminte those ugly \r\n in the text but not to do a line break as intented the user.
If I do this:
$comments = str_replace("\\r\\n", " ", $comments);
I receive it like this:
testing this is a new line
That is a lot better, but do not have line break.
If I do this:
$comments = str_replace("\\r\\n", "\\n", $comments);
it write the \n and I get this result:
testing \nthis is a new line
Is there some way to do line break in plain text in Javascript and receive the email as line break?