{"issue":{"created_at":"2011-11-29T05:41:29Z","state":"closed","updated_at":"2011-11-29T15:10:23Z","user":{"gravatar_id":"771f52b5b1d9889ded1391e182b44dbb","id":47914,"url":"https://api.github.com/users/millisami","avatar_url":"https://secure.gravatar.com/avatar/771f52b5b1d9889ded1391e182b44dbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"millisami"},"comments":4,"body":"The simple e.g.\r\n\r\n```rb\r\nhtml = \"<p>Look at the documentation.</p>\"\r\n\r\ndoc = Nokogiri::HTML(html)\r\n\r\nputs doc.to_s\r\n```\r\nAnd the output is:\r\n\r\n```html\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\r\n<html><body><p>Look at the documentation.</p></body></html>\r\n```\r\n\r\nI don't want the doctype, html and body tags to be wrapped. How to tell nokogiri not to generate that wrapper tag?\r\nI just want `<p>Look at the documentation.</p>` as the output.","assignee":null,"labels":[],"id":2378148,"number":576,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"How to turn off to not generate the doctype?","closed_at":"2011-11-29T15:10:23Z","html_url":"https://github.com/tenderlove/nokogiri/issues/576","url":"https://api.github.com/repos/tenderlove/nokogiri/issues/576","milestone":null},"action":"closed"}