Module: Hpricot::Traverse

Defined in:
lib/bazaar_sources.rb

Instance Method Summary collapse

Instance Method Details

#inner_textObject



29
30
31
32
33
34
35
# File 'lib/bazaar_sources.rb', line 29

def inner_text
  if respond_to?(:children) and children
    children.map { |x| x.inner_text.force_encoding('UTF-8') }.join
  else
    ""
  end
end