# File lib/scraper/base.rb, line 355 355: def text(element) 356: text = "" 357: stack = element.children.reverse 358: while node = stack.pop 359: if node.tag? 360: stack.concat node.children.reverse 361: else 362: text << node.content 363: end 364: end 365: return text 366: end