i've just realised that i've got an issue when people are posting comments on my site, user line breaks aren't showing so the comments are looking pretty jumbled. what do i need to do to convert a user entered line break (when they press return) into an html <br />? i'm guessing it's str_replace(), but what i was trying hasn't worked.
i've been trying str_replace("\n","<br />","$body"), but it's not working
can anyone shed some light?
thanks
i've been trying str_replace("\n","<br />","$body"), but it's not working
can anyone shed some light?
thanks
