Help with Net::HTTP

Is there any method that will return certain html tags? For instance
instead of printing the entire body I would like to print a div class. I
looked through the rdocs but I didn’t really find anything.

Is there any method that will return certain html tags? For instance
instead of printing the entire body I would like to print a div class. I
looked through the rdocs but I didn’t really find anything.

Your best bet is Hpricot.


Giles B.

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

Giles B. wrote:

Is there any method that will return certain html tags? For instance
instead of printing the entire body I would like to print a div class. I
looked through the rdocs but I didn’t really find anything.

Your best bet is Hpricot.

http://code.whytheluckystiff.net/hpricot/


Giles B.

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

Thank you that was exactly what I was looking for.

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