Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding \n when finding </...>

    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

    I take no responsibility for the above nonsense.


    Left Justified

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Problem solved
    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

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •