@nabsltd . . . I don't think that you have fully understood what I've said. When I say that my plugin "removes empty spans" I mean that it removes all span tags that have no attributes. See example below:
<p class="P1"><span>This is an example of a span tag that does nothing.</span></p>
And after my plugin is run the span tags are removed and the line will look like this:
<p class="P1">This is an example of a span tag that does nothing.</p>
. . . In the above example the span tags contains no attributes like classses or ids and therefore they contribute nothing to the styling of the text and can therefore be removed without causing any problems. This is what I mean when I say that my plugin automatically removes "empty spans". They are referred to as empty because they contain no attributes.
Last edited by slowsmile; 12-08-2023 at 07:28 PM.
|