Updated to use Nokogiri HTML processing so that newlines are imported.