lib/wrongdoc/parse_xml.rb in wrongdoc-1.7.0 vs lib/wrongdoc/parse_xml.rb in wrongdoc-1.8.0

- old
+ new

@@ -1,5 +1,11 @@ module Wrongdoc::ParseXML def parse_xml(str) - Nokogiri::XML(str) + opts = { + :input_encoding => 'utf8', + :output_encoding => 'utf8', + :wrap => 0, + :tidy_mark => false, + } + Nokogiri::XML(TidyFFI::Tidy.new(str, opts).clean) end end