Module: Jekyll::XmlPrettyPrint

Defined in:
lib/starter_web/_plugins/filter/xml_prettify.rb

Instance Method Summary collapse

Instance Method Details

#xml_pretty_print(input) ⇒ Object



29
30
31
32
# File 'lib/starter_web/_plugins/filter/xml_prettify.rb', line 29

def xml_pretty_print(input)
  # xml cleanup
  Nokogiri::XML(input).root.to_xml
end