How do I get the contents (inner html) of an element except the last and penultimate children?
<p>So I have something like this:</p>

<p><code>&lt;span class="a"&gt; Contents &lt;span class="b"&gt;Herp&lt;/span&gt;&lt;br&gt;&lt;/span&gt;</code></p>

<p>...where the <strong>"contents" may vary from a <em>string</em>, to a <em>single image</em> to <em>multiple linebreaks</em></strong>. I need to define the "contents" as a variable without getting the b.span and br.</p>

<p>How do you do it? Thank you very much in advance!</p>
