Thanks for the response, but that is exaclty what I am doing. Here's an example:
I input the following into a varchar field:
This is the first line of text.
This is the second line of text.
This is some text with a link
This is the next line.
This is the last line.
There are two cases possible:
1. Store already HTML-formatted text in db. Then you do nothing
before sending it to the screen; never use nl2br() here!
2. Store plain text, may be with a simpliest tags like b, i, u,
ol, ul, li, a, img. Then put it through the nl2br() function
before outp
Hi,
I'm getting a problem when I pull text from a mySQL database. The text is froma
varchar field and contains some HTML tags. New lines are translated to , but
when the field is outputted, anything coming after an HTML tag loses its formatting
(ie. no line breaks converted to ).
Can anyone s