Ok what I want to do is strip the contents of my html file, local for now and then out put it to a file. That part works but when I do it it takes out all the spacing, for example I have an H1 tag with content and a P tag, using the code below I run it, the stripped stuff is place d in the file but its on a single line, I want to to be broken in to multiple lines.
require "rubygems"
require "nokogiri"
my_html = open("./my_html.html")
File.open("./no_html.txt", "a+") do |file|
file.puts Nokogiri::HTML(my_html).text
end