# repair cutted XML code by closing the tags # work even if the XML is cut into a tag. # example: # transform '
toto

hello ]*$/m,'') depth-=1 depth.downto(0).each { |x| res<<= %{} } res end