I have a strange issue here, can anyone tell me why my nl2br does not seem to be achieving the desired effect?
Here's the screenshot of the data as stored in mysql phpmyadmin:
Here's a screenshot of my source code jquery / php code to display the data in a text area:
Here's a screenshot of the resulting jquery code which results in a Uncaught SyntaxError: Unexpected token ILLEGAL error, i suspect its because of the carriage return in the actual source code.
I've tried it without nl2br, all it does is create the same output (website source code) but without the HTML break tag. Both ways it seems to create the "carriage return " in the javascript code itself.
What am i missing here? Something missing with my source data or code?