From: Scott Elwood Date: 2011-04-28T03:57:44+09:00 Subject: Re: File.open of HTML file removes code Thanks to both of you! I checked both of the code you guys suggested and it worked fine. However there is still a problem. I am developing an application for a ruby class I am in, and I would like to edit some of that .erb file in an HTML textarea. I am using Ruby/Sinatra, and here is what happens: If I print the data into a
, it will show everything including the doctype, body, etc. Yet when I do this: The textarea will take away all of the aforementioned tags. Like I said before, if I replace the