i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this?
views:
24answers:
2
A:
use element.inner_text instead of #inner_html and it removes them for you
loosecannon
2010-08-22 19:24:44
+1
A:
doc.search("*") do |element|
element.swap element.content if element.kind_of? Hpricot::CData
end
floatless
2010-08-22 19:31:27