Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2014 17:27
Show Gist options
  • Save anonymous/8713942 to your computer and use it in GitHub Desktop.
Save anonymous/8713942 to your computer and use it in GitHub Desktop.
nokogiri help
<div class="foo">
<b>1. </b>
This is the text I want to extract
<div class="illustration"> An example</div>
</div>
<!-- I wish to extract only the text - "This is the text I want to extract" by parsing in Nokogiri
Doing doc.css('foo').text gives back all text embedded -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment