peter_anderson Posted March 20, 2009 Share Posted March 20, 2009 Hi I am coding a simple forum script, but when the text is inputed, it does not replace linebreaks with <br />. The content is submitted in a textbox. Anyway I could replace linebreaks with <br />? Thanks Link to comment https://forums.phpfreaks.com/topic/150359-solved-replace-linebreaks-with/ Share on other sites More sharing options...
dgoosens Posted March 20, 2009 Share Posted March 20, 2009 there is a function the does that: nl2br($string) Link to comment https://forums.phpfreaks.com/topic/150359-solved-replace-linebreaks-with/#findComment-789656 Share on other sites More sharing options...
peter_anderson Posted March 20, 2009 Author Share Posted March 20, 2009 there is a function the does that: nl2br($string) Thanks! Link to comment https://forums.phpfreaks.com/topic/150359-solved-replace-linebreaks-with/#findComment-789664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.