I've implemented selectnav from GitHub and it's functioning perfectly. However, my menu consists of list items with a description span inside each one, resulting in menu items structured as shown below:
<li><a href="somelink.html">Chapter Here <span>description here</span></a></li>
The issue is that selectnav returns the list item content including the description span, when I actually want it to only return Chapter Here
. How can I remove the description span so that selectnav displays just the chapter title?
Hopefully, this explanation is clear. Thank you! :)