Wouldn't also remove any legitimate math tags on the page? Can you target it for the specific rats nest that they enter https://github.com/Modernizr/Modernizr/blob/32d901cfe776995fbd5989139215ee9bf7957ab2/feature-detects/mathml.js#L13