Module: Hookit::Helper::XML

Defined in:
lib/hookit/helper/xml.rb

Instance Method Summary collapse

Instance Method Details

#sanitize_xml_vars(vars) ⇒ Object



5
6
7
8
9
10
# File 'lib/hookit/helper/xml.rb', line 5

def sanitize_xml_vars(vars)
  vars.inject({}) do |res, (key,value)|
    res[sanitize_xml_string(key.to_s)] = sanitize_xml_string(value.to_s)
    res
  end
end