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 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? 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 Link to comment https://forums.phpfreaks.com/topic/69495-solved-instead-of/#findComment-349189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.