Page 1 of 1

Carriage Return on forums

Posted: Sun Apr 28, 2002 8:54 pm
by timmy
I'm developing a news article application for a client. I would like them to be able to have paragraphs in their articles, and have them show up properly formatted. I've noticed when posting in this forum, if you press "return",


you get the proper spaces when the post is displayed.


I looked at the source, and there is a "<br />" tag after each carriage return on the viwed post. How would I accomplish this? I'm currently lookng through the code for phpbb, and it's quite alot of stuff, so any suggestions to speed up my discovery would greatly help, even if you would point me in the right direction as to what part of the phpbb code I would look at.

tia!

Posted: Sun Apr 28, 2002 9:52 pm
by dusty
nl2br()

Posted: Sun Apr 28, 2002 9:55 pm
by timmy
sweet, thanks!