From: MrZombie Date: 2010-08-03T00:15:05+09:00 Subject: Re: How to remove leading   from string On 2010-08-02 07:22:33 -0400, Lucky Nl said: >

test one   

  

test one test > onetest onetest one

test two test > two test two test two   

  

str = str.gsub(/ /,"").gsub(/

\s*<\/p>/,"") This will remove any   from your html, and after that, remove any

tag that contained only whitespace character. It's less than optimal, as you could combine it in one go, probably, but I don't want to spend time on stuff you should be able to do on your own. -- Thank you for your brain. -MrZombie