trouble with jquery selecting parents to unwrap and excluding children
<p>I'm having a devil of a time with unwrap and parents and children. Here is the sample code:</p>

<pre><code>&lt;li class="toplevel menu-item menu-item-type-post_type menu-item-object-page menu-item-95" id="menu-item-95"&gt;&lt;a href="http://mysite.com/something"&gt;some word&lt;/a&gt;
    &lt;ul class="sub-menu"&gt;
        &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-102" id="menu-item-102"&gt;&lt;a href="http://mysite.com/something"&gt;wome word&lt;/a&gt;&lt;/li&gt;
        &lt;li class="nolink menu-item menu-item-type-custom menu-item-object-custom menu-item-103" id="menu-item-103"&gt;&lt;a href="http://mysite.com/our-coalitions"&gt;projects&lt;/a&gt;
            &lt;ul class="sub-menu"&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-110" id="menu-item-110"&gt;&lt;a href="http://mysite.com/proje1"&gt;project&lt;/a&gt;&lt;/li&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-111" id="menu-item-111"&gt;&lt;a href="http://mysite.com/proj2"&gt;project2&lt;/a&gt;&lt;/li&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-112" id="menu-item-112"&gt;&lt;a href="http://mysite.com/proj3"&gt;project 3&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="nolink menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-104" id="menu-item-104"&gt;&lt;a href="http://mysite.com"&gt;another link&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/li&gt;
</code></pre>

<p>What I'm trying to do is remove the hyperlinks with <code>nolink</code> class while keeping the <code>&lt;li&gt;</code>s intact, so I have something effectively like:</p>

<pre><code>&lt;li class="toplevel menu-item menu-item-type-post_type menu-item-object-page menu-item-95" id="menu-item-95"&gt;&lt;a href="http://mysite.com/something"&gt;some word&lt;/a&gt;
    &lt;ul class="sub-menu"&gt;
        &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-102" id="menu-item-102"&gt;&lt;a href="http://mysite.com/something"&gt;wome word&lt;/a&gt;&lt;/li&gt;
        &lt;li class="nolink menu-item menu-item-type-custom menu-item-object-custom menu-item-103" id="menu-item-103"&gt;projects
            &lt;ul class="sub-menu"&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-110" id="menu-item-110"&gt;&lt;a href="http://mysite.com/proje1"&gt;project&lt;/a&gt;&lt;/li&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-111" id="menu-item-111"&gt;&lt;a href="http://mysite.com/proj2"&gt;project2&lt;/a&gt;&lt;/li&gt;
                &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-112" id="menu-item-112"&gt;&lt;a href="http://mysite.com/proj3"&gt;project 3&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="nolink menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-104" id="menu-item-104"&gt;another &lt;/li&gt;
    &lt;/ul&gt;
&lt;/li&gt;
</code></pre>

<p>Getting very confused on how to do that! When i use <code>$('.nolink a').unwrap()</code> it unwraps the ones I want AND the children.</p>
