lib/ahcx_template_handler.rb in ahc-0.2.5 vs lib/ahcx_template_handler.rb in ahc-0.2.6

- old
+ new

@@ -42,10 +42,10 @@ def self.render(xml) ahcx_source = "<document>#{xml}</document>" ESCAPED_SYMBOLS.each do |sym, escaped_sym| ahcx_source.gsub!(sym, escaped_sym) end - ahcx = Nokogiri.parse(ahcx_source) + ahcx = Nokogiri::XML.parse(ahcx_source) content = '' ahcx.children.first.children.each do |node| content += node_content(node) end compressor = HtmlCompressor::Compressor.new(:remove_intertag_spaces => true)