|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. -- Posted via http://www.ruby-forum.com/. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> 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 Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Giles Bowkett 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 Bowkett > > 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. -- Posted via http://www.ruby-forum.com/. |
|
![]() |
| Outils de la discussion | |
|
|