Search code examples
rubyxmlhpricotxml-parsing

how does one remove <![CDATA[ ]]> tags from around text in XML using Hpricot?


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


Solution

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