Nothing in mojoPortal is changing your markup. Your markup is more than likely being changed by the browser because it's invalid. I would write your markup this way:
<div class="topmenu">
<ul>
<li onClick="javascript:void(0)" id="ctl00_TopMenu1_alma" class="topmenu-main">
<span class="topmenu-main-title">Megoldásaink</span>
<span class="topmenu-itemcontent">
<a href="xxx">asdas</a>
</span>
</li>
</ul>
</div>
HTH,
Joe D.