title: How to remove only the parent element and not its child elements in JavaScript?
body: <p>Let's say:</p>
  
  <pre><code>&lt;div&gt;
    pre text
    &lt;div class="remove-just-this"&gt;
      &lt;p&gt;child foo&lt;/p&gt;
      &lt;p&gt;child bar&lt;/p&gt;
      nested text
    &lt;/div&gt;
    post text
  &lt;/div&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>&lt;div&gt;
    pre text
    &lt;p&gt;child foo&lt;/p&gt;
    &lt;p&gt;child bar&lt;/p&gt;
    nested text
    post text
  &lt;/div&gt;
  </code></pre>
  
  <p>I've been figuring out using Mootools, jQuery and even (raw) JavaScript, but couldn't get the idea how to do this.</p>