How to send via Ajax.Post textarea with intermi?

Good evening! There is a textarea. When you transfer ajax.post entery it removed. How can I solve this problem?
September 19th 19 at 00:25
3 answers
September 19th 19 at 00:27
By "enteritis" refers to the carriage return? What makes you think that they removed?
September 19th 19 at 00:29
How did you determine that entery cleaning? entery come in the POST in the form of a pair of CR+LF characters ('\r\n'). The question is, what do You then do with what You post. If you put in the database, everything as it comes, for correct output to html (after nachitki from the database, derivation) use the function nl2br
September 19th 19 at 00:31
Try to convert the data to json and send. And on the backend of a json'to.

Find more questions by tags AJAXWeb DevelopmentjQueryJavaScript