I'm making a module right now that has the user input data in the form of a textarea. So in the database the data looks like this.

Some sentence here.

Another sentence here.

More sentences over here.

But when this value is retrieved from the database it looks like this

"Some sentence here. Another sentence here. More sentences over here."

How can I correctly retrieve this data so that it prints on the screen like it does in the database?

Comments

danielb’s picture

wrap your output in nl2br() php function

m4r71n’s picture

what if he wrap the input and output data in

m4r71n’s picture

< pre>