title: Set parent element of a group of nodes (wrap whole group)
body: <p>Can Jsoup set parent element of a group of nodes? I mean wrap it, but no every matched element - only create one parent element? So I want to include more elements into one?</p>
  
  <p>Example: before</p>
  
  <pre><code>&lt;b&gt;some text&lt;i&gt; blabla &lt;/i&gt; other text &lt;/b&gt;
  </code></pre>
  
  <p>After</p>
  
  <pre><code>&lt;span id='something'&gt;&lt;b&gt;some text&lt;i&gt; blabla &lt;/i&gt; other text &lt;/b&gt;&lt;/span&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;b&gt;some te
  &lt;span id="cke_bm_69S" style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;
  xt&lt;/b&gt; 
  aaa 
  &lt;i&gt;bb
  &lt;span id="cke_bm_69S" style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;
  b&lt;/i&gt; 
  </code></pre>
  
  <p>The span tags are bookmarks - start selection and end selection - added from CKEDITOR. Then on the server side I have to process it. This is the goal - add final span and remove the temp-spans (bookmarks):</p>
  
  <pre><code> &lt;b&gt;some te&lt;/b&gt;
      &lt;span id="something"&gt;&lt;b&gt;
      xt&lt;/b&gt; 
      aaa 
      &lt;i&gt;bb
      &lt;/i&gt;&lt;/span&gt;&lt;i&gt;
      b&lt;/i&gt; 
  </code></pre>
  
  <p>As you can see, it has to solve the tag-crossing problem.</p>