View Single Post
  #2  
Old 09-13-2006, 11:49 AM
junik junik is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
junik is on a distinguished road
Default

if you have the <p> area separated out, you can use str_replace quite successfully. if the <p> is located inside a huge block of html and you only want to remove newlines from inside the <p></p> and not outside it, then you're going to have to either separate it out or run a regular expression on the whole mess. You may have to break down and actually learn regex. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - \r\n inside <p></p> tags. Removel ?
View Single Post
  #2  
Old 09-13-2006, 11:49 AM
junik junik is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
junik is on a distinguished road
Default

if you have the <p> area separated out, you can use str_replace quite successfully. if the <p> is located inside a huge block of html and you only want to remove newlines from inside the <p></p> and not outside it, then you're going to have to either separate it out or run a regular expression on the whole mess. You may have to break down and actually learn regex. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote