Madatan Posted August 10, 2006 Share Posted August 10, 2006 Okey, so I got a news-system with an admin area and all that, now I just want the news system to format the text a little bit by itself. So if I write:Hello my name is George!Good bye!I dont want to have to add the two [code]<br><br>[/code] to make it a new row and another row between the two sentences. Anyone following? :P Link to comment https://forums.phpfreaks.com/topic/17123-formatted-text/ Share on other sites More sharing options...
xyn Posted August 10, 2006 Share Posted August 10, 2006 Use this: nl2br($variable); Link to comment https://forums.phpfreaks.com/topic/17123-formatted-text/#findComment-72428 Share on other sites More sharing options...
Madatan Posted August 10, 2006 Author Share Posted August 10, 2006 Thanks! Link to comment https://forums.phpfreaks.com/topic/17123-formatted-text/#findComment-72429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.