Removing the inner elements

Hi

  M getting some problems in remove the span tags

i have First Second Third

i wanna remove first and second span tags how can i achieve it help me

OUTPUT:

Third

I have an hpricot syntax so that i can remove all the span tags i unable
to
remove it

Regards
Prashanth

On Sat, Sep 12, 2009 at 4:39 AM, prashanth hiremath
[email protected] wrote:

i have First Second Third

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:

Third

I would probably use Nokogiri for this rather than Hpricot, but post
the code you’re having problems with.


Hassan S. ------------------------ [email protected]
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs