views:

24

answers:

2

i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this?

A: 

use element.inner_text instead of #inner_html and it removes them for you

loosecannon
+1  A: 
doc.search("*") do |element|
    element.swap element.content if element.kind_of? Hpricot::CData
end
floatless