How to render Entityform submission (entity) without DOCTYPE and HEAD tags?
So in the end it was the Emogrifier class that kept adding the DOCTYPE and everything else.

It would have been good to know that it adds CSS inline but it also fixes/creates a whole new document. So it can't be used for e.g. fragments or in this case entities.