DeanWhitehouse Posted November 20, 2008 Share Posted November 20, 2008 nl2br(); Is it possible for it to produce <br> instead of <br/> . Quote Link to comment Share on other sites More sharing options...
marcus Posted November 20, 2008 Share Posted November 20, 2008 echo nl2br($input,false); if that method fails for you $l = str_replace("\r\n","<br>",$line); Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted November 20, 2008 Author Share Posted November 20, 2008 The first wouln't work because there is only one argument for nl2br, but the str_replace one works fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.