only remove iFrame if necessary
Merge pull request #7100 from guardian/use-text-template

Only remove iFrame if necessary