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 ? 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 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
Archived
This topic is now archived and is closed to further replies.