you just need to do a global search and replace on the field with a regular expression that swaps the newline with the tag:
$fieldtext =~ s|\n|<br />|g # self terminating tag for XHTML complian +ce
note i've changed the regex delimiter to a pipe ( | ) so i don't have to escape the '/' character in the br tag.
In reply to Re: Simple Question for you guys.
by AidanLee
in thread converting carriage returns to <br> tags (was: Simple Question for you guys)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |