Hi: When I insert a text into the DB, I have line breaks, but when I select and output them to html they do not have any line breaks.
For example
The much-anticipated Battle of Boca wound up being a one-sided show that lasted just over an hour and left Spadea slamming his racket to the ground in disgust. Had Spadea won and, heaven forbid, come away with the title, McEnroe would have been harder pressed to justify leaving the 29-year-old off the Davis Cup team in favor of Mardy Fish, who lost in the first round of the NASDAQ.
The much-anticipated Battle of Boca wound up being a one-sided show that lasted just over an hour and left Spadea slamming his racket to the ground in disgust.
Had Spadea won and, heaven forbid, come away with the title, McEnroe would have been harder pressed to justify leaving the 29-year-old off the Davis Cup team in favor of Mardy Fish, who lost in the first round of the NASDAQ.
Would show up as
The reason is that you input text, but the output is parsed as HTML by the web browser.
The solution is to use [man]nl2br/man after retrieving from database.
Perfect, thanks,
😃 😃 😃