module MultiXml::Parsers::Rexml
def merge_texts!(hash, element)
element::
Hash to add the converted element to.
hash::
Merge all the texts of an element into the hash
def merge_texts!(hash, element) unless element.has_text? hash else # must use value to prevent double-escaping texts = '' element.texts.each { |t| texts << t.value } merge!(hash, CONTENT_ROOT, texts) end end