Getting the parent terms adds additional empty markup [closed]

check your closing

  • your missing the close. It should be
    <li><a href=""></a></li>