Basically when i insert textarea value into my mysql database, the new lines are not preserved.
At this point people will say use nl2br()
. But that is a solution for people that can't get the new lines to display in html. This is not my problem.
I know this because i changed the column value and added newlines directly in phpmyadmin, and they all showed up in rendered html.
Somehow between the Ajax request > Post request > PDO Query Insert > PhpMyAdmin, the new lines are removed.
Thanks.