Removing parts from a string (includes a line break)

Discussion in 'PHP' started by nickharper, May 11, 2011.

  1. #1
    Hi guys,

    I am using ckeditor on a site which works great but it keeps putting the code like this:

        <p>
                Testing the RSS Feed out and the paragraphs.</p>
    
    Code (markup):
    The thing is, I need it to look like this:

        <p>Testing the RSS Feed out and the paragraphs.</p>
    
    Code (markup):
    How would I go about doing a string replace to simply just remove that little gap?

    Thanks
     
    nickharper, May 11, 2011 IP
  2. littlejohn199

    littlejohn199 Peon

    Messages:
    42
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    littlejohn199, May 11, 2011 IP