I’m trying to replace all ul tags with a level0 class, something like this:
<ul>
<li>Test
<ul class="level0">
...
</ul>
</li>
</ul>
would be processed to
<ul>
<li>Test</li>
</ul>
I tried
$_menu = preg_replace('/<ul class="level0">(.*)<\/ul>/iU', "", $_menu);
but it’s not working, help?
Thanks.
Yehia
I am sure this is a duplicate, but anyway, here is how to do it with DOM