Hello, I am trying to remove empty div tags that have id, name and style attributes and whose closing </div> come after spaces and most likely on a new line of code...
Basically my html looks like this:
<div name="m0s2" id="m0s2" style="display:none">
</div>
<div name="m0s3" id="m0s3" style="display:none">
</div>
<div name="m0s4" id="m0s4" style="display:none">
</div>
<div name="m0s5" id="m0s5" style="display:none">
</div>
and I am trying to get rid of those like this:
$menu = preg_replace('/<div*>\s\s+<\/div>/','',$menu);
but I must be doing something wrong...
Can anybody help me out?