ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: HTML parser Hpricot? and how to get all text
by Mortee other posts by this author
Oct 31 2007 9:19AM messages near this date
Re: HTML parser Hpricot? and how to get all text | Re: HTML parser Hpricot? and how to get all text
kendear wrote:
>  On 10/30/07, mortee <mortee.lists@[...].hu> wrote:
> >
> > C:\>gem list hpricot
> >
> > *** LOCAL GEMS ***
> >
> > hpricot (0.6, 0.5, 0.4)
> >     a swift, liberal HTML parser with a fantastic library
> >
> > C:\>irb
> > irb(main):001:0> require 'hpricot'
> > => true
> > irb(main):002:0> d = Hpricot("<b>hello <i>world</i></b>")
> > => #<Hpricot::Doc {elem <b> "hello " {elem <i> "world" </i>} </b>}>
> > irb(main):003:0> d.inner_text
> > => "hello world"
> >
> > mortee
> >
> >
> >
>  yup, mine is
>  
>  C:\>gem list hpricot
>  
>  *** LOCAL GEMS ***
>  
>  hpricot (0.4)
>      a swift, liberal HTML parser with a fantastic library
>  
>  and d.inner_text or d.text both won't work.
>  

Does something prevent you from upgrading?

mortee
Thread:
SpringFlowers AutumnMoon
Phlip
SpringFlowers AutumnMoon
7stud --
Kendear
SpringFlowers AutumnMoon
Mortee
Kendear
Mortee
SpringFlowers AutumnMoon
SpringFlowers AutumnMoon
Thomas Wieczorek
Mortee

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved