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? Quote 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 Quote 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 :) Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.