|
Posted by Defacta on 10/08/07 08:56
Hello !
How to delete all the new lines and replace them by <br>, because new
lines involves Javacript Error, IE:
facts_infos[0][1] = "In 1972 he was done for murdering a colleague
over a matter of $30! <br />
He served 2 years for this and was never seen again, blah blah blah."
What I do is:
nl2br($row['facts_content']))
This add a <br /> but does not delete the new line before "He served".
Does anyone know how to replace new lines to <br> tags and delete new
lines \n ?
Thanks,
Vincent.
Navigation:
[Reply to this message]
|