Method: Nokogiri::XML::Node#to_s
- Defined in:
- lib/nokogiri/xml/node.rb
#to_s ⇒ Object
Turn this node in to a string. If the document is HTML, this method returns html. If the document is XML, this method returns XML.
1190 1191 1192 |
# File 'lib/nokogiri/xml/node.rb', line 1190 def to_s document.xml? ? to_xml : to_html end |