I am making a rails application, and I am supposed to work with Nokogiri for parsing the browser data. I could reach to get the data from, using css classes, and tags.
Now my question is that if we want to get the text data from a parent division in which there are 3 or 4 kinds of tags(p,span,sup,b..etc) again, then how can we reach to get all tags data at a time in the parent division ?
Can anybody help me please?
If there is a parent division in which some types of tags like
p,u,b, etc. are involved, write your code like:Under the
#main-headdivision all text will be returned.I think the above will work for you.