LPS-38191 Fix markup in order to be valid

UL elements are not allowed insied UL elements, so the change is based on include the nested ul inside the root li element:

Before:
<ul>
<li> root<li>
<ul>....</ul>
</ul>

After:

<ul>
<li> 
root
<ul>....</ul>
<li>
</ul>