Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'nokogiri' original = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd\"> <html><body><br /></body></html>" nokogiri = Nokogiri::HTML.parse(original) output = nokogiri.to_html puts "Expected: #{original}" puts "Got: #{output}"
This paste will be private.
From the Design Piracy series on my blog: