Caffeine-Power Posted April 5, 2007 Share Posted April 5, 2007 Hey guys, I've been learning from the website for a long time now and I decided to start a small project. I'm writing some software that will be used by me as a type of blog, it's going really well and I'm almost finished. I've got a problem though, I wish to know how to do paragraph formatting. When I enter large amount of text inside a textbox, I want it to be formatted as it's typed in the textbox when it's output. For instance, typing: PHP FREAKS Does appear like that and not: PHP FREAKS Thank you in advance and sorry to bother you Link to comment https://forums.phpfreaks.com/topic/45769-solved-text-formatting/ Share on other sites More sharing options...
pocobueno1388 Posted April 5, 2007 Share Posted April 5, 2007 Use the function nl2br(); <a href="http://www.php.net/manual/en/function.nl2br.php">How to use it.</a> Link to comment https://forums.phpfreaks.com/topic/45769-solved-text-formatting/#findComment-222324 Share on other sites More sharing options...
Caffeine-Power Posted April 5, 2007 Author Share Posted April 5, 2007 Heh, that is quite confusing... oh wow, I got it working. Thanks man :] Link to comment https://forums.phpfreaks.com/topic/45769-solved-text-formatting/#findComment-222336 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.