On 2010-08-02 07:22:33 -0400, Lucky Nl said:

> <p>test one &nbsp;&nbsp;</p><p>&nbsp;&nbsp;</p><p>test one test
>        onetest onetest one</p> <p>test two test
>        two test  two test two  &nbsp;&nbsp;</p>  <p>&nbsp;&nbsp;</p>

str = str.gsub(/&nbsp;/,"").gsub(/<p>\s*<\/p>/,"")

This will remove any &nbsp; from your html, and after that, remove any 
<p> 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