hey this should be an easy one...
a program outputs some text which includes linebreaks, white space, mixed in amongst the text... I want to replace these characters with appropriate XHTML tags, such as \n to <br/> and \s to
etc... Is there a function in the core php that does this?
oh and i've tried str_replace("\n",<br/>,$string); and it didn't work!