mattal999 Posted October 18, 2007 Share Posted October 18, 2007 I have a record in a database which contains 'The Enter Key' (moving down a line) in it a couple of times. when i fetch it and echo it on a page, it is like it has changed them for spaces... can anyone give me code to re-HTML it? Thanks Link to comment https://forums.phpfreaks.com/topic/73773-solved-getting-html-back/ Share on other sites More sharing options...
hostfreak Posted October 18, 2007 Share Posted October 18, 2007 You mean a line break? If so, when you display the information use <a href="http://php.net/nl2br">nl2br()</a> Link to comment https://forums.phpfreaks.com/topic/73773-solved-getting-html-back/#findComment-372217 Share on other sites More sharing options...
mattal999 Posted October 18, 2007 Author Share Posted October 18, 2007 yup worked cheers Link to comment https://forums.phpfreaks.com/topic/73773-solved-getting-html-back/#findComment-372221 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.