lib/isodoc/function/utils.rb in isodoc-0.8.6 vs lib/isodoc/function/utils.rb in isodoc-0.8.7
- old
+ new
@@ -39,10 +39,10 @@
end.to_h
end
def to_xhtml(xml)
xml.gsub!(/<\?xml[^>]*>/, "")
- unless /<!DOCTYPE /.match? xml
+ unless /<!DOCTYPE /.match xml
xml = '<!DOCTYPE html SYSTEM
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' + xml
end
Nokogiri::XML.parse(xml)
end