I have added a text area into my form. The problem is when there are line breaks saved, it saves correctly into the database but in the view page, there are no line breaks at all.
Example:
Typed into the text area for the form:
this
is
an
example
Saved into database as:
this
is
an
example
View page shows it as:
this is an example
Anyone got any ideas on how to display the line breaks in the view page?
Use nl2br function in your view page.