I am using clone to generate new divs in my html, what would be a good way to save the whole html(that was edited by the user), to a FILE, I won't be using this in a server side, I want to save the cloned information and reload with the changes, I found this line below, but I don't know how to save the clone html to a file (or the same file) and if it will work.
var $alteredHtml = $('html').clone();