Shouldn't sanitizeMSCutPaste() be done on save and not on output? I appreciate preservation of the original, but not for this.
I don't have any objection to having it as part of pre parse, that is where I originally proposed it to reside. There was the preservation concern so it was moved to parse instead. The only benefit is in parse it will not miss as its not uncommon for addons / mods to fail to call pre parse at all.