PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > with Net::HTTP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
with Net::HTTP

Réponse
 
LinkBack Outils de la discussion
Vieux 09/01/2008, 05h44   #1
Jono Oshea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 09/01/2008, 05h49   #2
Giles Bowkett
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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.


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

  Réponse avec citation
Vieux 09/01/2008, 06h33   #3
Jono Oshea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with Net::HTTP

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/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09967 seconds with 11 queries