I was just curious if WordPress was adding anything during the switching process.
Does this still happen if you take the <iframe>
element out temporarily?
Looking into this more, I’m not sure if it’s possible to prevent, as WordPress adds the paragraphs when the content is output. That being said, I’ve only seen this happen when shortcodes are being used, usually.