papaface Posted September 15, 2007 Share Posted September 15, 2007 Hello, What can you use instead of <pre> to get the content to look alright without messing up the layout like <pre> . Is there a way to convert returns and new lines as a <br /> ? regards Quote Link to comment https://forums.phpfreaks.com/topic/69495-solved-instead-of/ Share on other sites More sharing options...
rarebit Posted September 15, 2007 Share Posted September 15, 2007 You can use CSS to change how pre looks, I put code tags within pre... What are you trying to achieve? Quote Link to comment https://forums.phpfreaks.com/topic/69495-solved-instead-of/#findComment-349188 Share on other sites More sharing options...
papaface Posted September 15, 2007 Author Share Posted September 15, 2007 Its okay I worked out how to do it: str_replace("\r\n","<br />",$var); Thanks Quote Link to comment https://forums.phpfreaks.com/topic/69495-solved-instead-of/#findComment-349189 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.