title: unwraping div tags between two elements
body: <p>I want to remove the div's between two specific elements</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="test1"&gt;
    &lt;div id="test2"&gt;
      &lt;div id="test3"&gt;
        &lt;div id="test4"&gt;
          &lt;div id="test5"&gt;
            &lt;div id="test6"&gt;
              &lt;ul id="ulid"&gt;
                &lt;li&gt;item1&lt;/li&gt;
                &lt;li&gt;item2&lt;/li&gt;
                &lt;li&gt;item3&lt;/li&gt;
                &lt;li&gt;item4&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>i want to remove the div's between  id test1 and id ulid
  how to use unwrap here
  expected output</p>
  
  <pre><code>&lt;div id="test1"&gt;
    &lt;ul id="ulid"&gt;
      &lt;li&gt;item1&lt;/li&gt;
      &lt;li&gt;item2&lt;/li&gt;
      &lt;li&gt;item3&lt;/li&gt;
      &lt;li&gt;item4&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>