I’m having a very strange issue where the CSS IDs are being replaced with the value of the HTML tag.
In the back end, while editing, everything is working perfectly. When published, in some cases, the IDs are replaced with the value within the tag. As such, the CSS is not applied and the page is not styled correctly.
This is the same code that has been working for many years. The most recent update which appeared to break things was the latest WordPress update.
Is there a way to fix this without rewriting all of our custom code?