title: Using wrapInner on LI contents, but not child lists?
body: <p>Consider the following code:</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;ul&gt;
    &lt;li&gt;Home
  
      &lt;ol&gt;
        &lt;li&gt;One
          &lt;ol&gt;
            &lt;li&gt;Beta&lt;/li&gt;
          &lt;/ol&gt;
        &lt;/li&gt;
      &lt;/ol&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to wrap the <code>LI</code> labels automatically in <code>span</code> tags, but just the labels, not the child <code>LI</code>s, like so: </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;ul&gt;
    &lt;li&gt;&lt;span&gt;Home&lt;/span&gt;
  
      &lt;ol&gt;
        &lt;li&gt;&lt;span&gt;One&lt;/span&gt;
          &lt;ol&gt;
            &lt;li&gt;&lt;span&gt;Beta&lt;/span&gt;&lt;/li&gt;
          &lt;/ol&gt;
        &lt;/li&gt;
      &lt;/ol&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But after playing for a bit, I'm not sure if this will be possible. I was trying along these lines:</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-js lang-js prettyprint-override"><code>$('.hierarchy li').wrapInner('&lt;span /&gt;');</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;ul&gt;
    &lt;li&gt;Home
  
      &lt;ol&gt;
        &lt;li&gt;One
          &lt;ol&gt;
            &lt;li&gt;Beta&lt;/li&gt;
          &lt;/ol&gt;
        &lt;/li&gt;
      &lt;/ol&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But then <em>everything</em> in the <code>LI</code>s get wrapped in the <code>&lt;span&gt;</code>. Is this possible to do, or is it something other than <code>wrapInner();</code> I need to use? </p>