newrehmi Posted March 18, 2010 Share Posted March 18, 2010 hello, i got some problem with this function, in firefox, this function convert (space) to <br /> when I use it on textarea... I just want it to only convert (enter) to <br />, not (space). example codes: $text = $_POST['textarea']; $text = nl2br($text); Anybody got idea how to solve this? thanks so much. p/s:sorry for my bad english. Quote Link to comment Share on other sites More sharing options...
scvinodkumar Posted March 18, 2010 Share Posted March 18, 2010 do u have this problem in firefox browser only, or in all browser. Quote Link to comment Share on other sites More sharing options...
newrehmi Posted March 18, 2010 Author Share Posted March 18, 2010 only in firefox sir... please help me, i need to present my site to my lecturer in few more days... Quote Link to comment Share on other sites More sharing options...
newrehmi Posted March 18, 2010 Author Share Posted March 18, 2010 yay, solved. thanks God... my textarea was wrapped with 'hard'. Now I remove the wrap and it's done... thanks for replying anyway =) 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.