Adding Line Breaks Or Paragraph Breaks Automatically


I have a text-area field - which populates a field.

I would like it to automatically insert line breaks or paragraph breaks in the output.

What are my options ?


It depends on whether you want to eventually display html or plain text.

If you’re displaying plain text to the browser, and not in a textarea, just use ln2br() - google it.

The textarea already knows what linebreaks are and will display them appropriately.