Is there a function I can add that will stop the editor from removing the ID applied to span tags? I have one page in a client's site that needs to use span tags with classes and id's. The classes are not modified, but the IDs are deleted (the ongoing issue with switching between Visual and Text). I can't tell the client to NEVER switch, that wouldn't be an option. So I'm hoping someone advanced with would have a workaround, preferably some snippet of code I can add to the functions.php file? I've searched through the forums and elsewhere, and all I could find was this snippet of code for div tags, but it's not doing anything in this situation (and my div tags are not being deleted anyway.)
This is an example of the code in the editor:
<span class="anchor" id="primary-care-medicine"><h3>Primary Care Medicine</h3></span>
This is what it looks like after switching modes:
<span class="anchor"> </span>
<h3>Primary Care Medicine</h3>
You can see that the span class remains in tact, but the ID is gone, AND the H3 is actually moved outside the span.
Using the latest version of WP, and I do not have the TinyMCE plugin installed, or any other editor plugin.
Anyone know how to stop this from happening?
thanks~