Hi M getting some problems in remove the span tags i have <see><span> First</span> <span > Second <span> Third </span> </see> i wanna remove first and second span tags how can i achieve it help me OUTPUT: <see> <span> Third </span> </see> I have an hpricot syntax so that i can remove all the span tags i unable to remove it Regards Prashanth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sat, Sep 12, 2009 at 4:39 AM, prashanth hiremath <prashanthhiremath2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i haveĀ <see><span> First</span> <span > Second <span> Third </span> </see>FYI, that sample is bad XML -- second span isn''t closed.> i wanna remove first and second span tags how can i achieve it help me > > OUTPUT: > > <see> <span> Third </span> </see>I would probably use Nokogiri for this rather than Hpricot, but post the code you''re having problems with. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan