Would empty spans also include <span class="foobar"> <i class="foobar">, <b class="foobar">, etc. with only spaces enclosed? Sample below was tested with 1 to 28 spaces with the same output.
Code:
<p>This is a test<span class="italic"> </span>for <span class="italic">spaces</span> inside a tag.</p>
after running CustomCleanerPlus comes out as:
Code:
<p>This is a test<span class="italic"/>for <span class="italic">spaces</span> inside a tag.</p>
It doesn't seem to matter how many spaces are inside the tags, they all get removed. Almost as if the code is supposed to remove multiple spaces and then doesn't stop at a single space.