title: Clone HTML and remove some nodes using jQuery
body: <p>I'm developing a little tool for live editing using Chrome DevTools, and I have a little button "Save" which grabs the HTML and sends it to server to update the static file (.html) using Ajax. Very simple indeed.</p>
  
  <p>My problem is that I need to filter the HTML code before sending it to the server, I need to remove some nodes and I'm trying to achive this using jQuery, something like this:</p>
  
  <pre><code>// I grab all the HTML code
  var html = $('&lt;div&gt;').append($('html').clone()).html();
  // Now I need to remove some nodes using jQuery
  $(html).find('#some-node').remove();
  // Send the filtered HTML to server
  $.post('url/to/server/blahblahblah');
  </code></pre>
  
  <p>I already tried this <a href="https://stackoverflow.com/questions/7159426/using-jquery-to-search-a-string-of-html">Using jQuery to search a string of HTML</a> with no success. I can't achieve to use jQuery on my cloned HTML code.</p>
  
  <p>Any idea about how to do this?</p>