Whenever user enters text in textarea field,the data is saved in MySql database using php and ajax.
The problem is that data gets saved in mysql in a straight line without line breaks even if the user hits 'enter'.
Please help me .If you could give code,that would be awesome.
tags at the place where enter was hit? – Shaheryar ahmed Jul 19 '18 at 21:43
` in place of `\n` should be the same as what was entered. If you want to double space use 2. – user3783243 Jul 19 '18 at 21:44