title: Wrap all next_elements in BeautifulSoup
body: <p>I have a piece of HTML like so:</p>
  
  <pre><code>&lt;figure&gt;
      &lt;img src=".." alt=".." /&gt;
      Some text that I have to wrap in &lt;code&gt;figcaption&lt;/code&gt;
  &lt;/figure&gt;
  </code></pre>
  
  <p>And I am trying to wrap everything that follows <code>&lt;img&gt;</code> in a <code>&lt;figcaption&gt;</code>. Is that possible?</p>
  
  <p><code>next_elements</code> works fine to get the elements I want, but returns a generator, which doesn't play nicely with the <code>wrap</code> method.</p>