Remove internal tags before output