colap Posted December 4, 2011 Share Posted December 4, 2011 User can edit a post. I need to replace the html '<br/>' element to newline character ('\n') . When a user will edit a post he/she will not see the '<br/>'. How can i do this with php ? Quote Link to comment https://forums.phpfreaks.com/topic/252452-how-can-i-replace-all-to-n/ Share on other sites More sharing options...
Zane Posted December 4, 2011 Share Posted December 4, 2011 http://www.php.net/manual/en/function.nl2br.php#91828 Quote Link to comment https://forums.phpfreaks.com/topic/252452-how-can-i-replace-all-to-n/#findComment-1294341 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.