Return only text inside html

17 views
Skip to first unread message

Derkian Afonso

unread,
Aug 26, 2015, 9:27:21 AM8/26/15
to nokogiri-talk

Hello,

I would like to know if i can extract only the text in a url with nokogiri. 

Thanks

Mike Dalessio

unread,
Aug 26, 2015, 9:38:40 AM8/26/15
to nokogiri-talk

Yes!

Happy to help if you can provide some specific markup and desired output.

--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Derkian Afonso

unread,
Aug 26, 2015, 10:08:03 PM8/26/15
to nokogiri-talk
Hi Mike!

There are several different pages and all pages has different markups too. 
I would like to extract the complete text without markups inside body.
Reply all
Reply to author
Forward
0 new messages