Remove captured iframe and plaintext tag at the end