Created
January 30, 2014 17:27
-
-
Save anonymous/8713942 to your computer and use it in GitHub Desktop.
nokogiri help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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