Mr.x Posted December 5, 2006 Share Posted December 5, 2006 Hello all!Anyone know of a way to format a textarea input to html. For instance if you pressed enter and skipped a line, it would turn it into <br>. Another example could be posting on this forum, how if you skip 5 lines, you're output is the same etc. Also can this step be reversed so the user can edit a post? Link to comment https://forums.phpfreaks.com/topic/29488-fomatting-text-input-to-html-solved/ Share on other sites More sharing options...
Philip Posted December 5, 2006 Share Posted December 5, 2006 http://us3.php.net/manual/en/function.nl2br.php Link to comment https://forums.phpfreaks.com/topic/29488-fomatting-text-input-to-html-solved/#findComment-135316 Share on other sites More sharing options...
Mr.x Posted December 5, 2006 Author Share Posted December 5, 2006 Thanks alot :) Link to comment https://forums.phpfreaks.com/topic/29488-fomatting-text-input-to-html-solved/#findComment-135318 Share on other sites More sharing options...
Philip Posted December 5, 2006 Share Posted December 5, 2006 No problem :D Link to comment https://forums.phpfreaks.com/topic/29488-fomatting-text-input-to-html-solved/#findComment-135319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.