View Full Version : Adding \n when finding </...>

05-27-2004, 04:18 AM
Hi php ppl :)
I'm pulling xhtml out of a database for a home brew CMS and would like to make the output mark-up neater without having to add \n to the stored field.
I'm trying to make a function that searches a single field's output and insert \n whenever it finds a closing tag. </anyelement>\n
Any tips in the right direction would be greatly appreciated :D

05-27-2004, 04:54 AM
Problem solved :D
The carriage returns were already being added, I was only looking at one page which had an extra long single paragraph.
hehe, the php forum is where I always end up being an imbarressed fool :o