module ActiveSupport::XmlMini_JDOM
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) delete_empty(hash) text_children = texts(element) if text_children.join.empty? hash else # must use value to prevent double-escaping merge!(hash, CONTENT_KEY, text_children.join) end end