I have in database a string like : First line\r\nSecond Line.
But when I put this text in textarea the \r\n appears and there is no carraige return.
So how to add a carriage return in textarea ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess your database already contains a replacement character for the backslash and
rorn. This would be not that good. Please make sure you are saving a real line break there. Then everything would be fine and you wouldn’t need an extra replacement.If you cannot change that, you can replace them back using this: