def remove_unsafe_tags(self):
        for tag in self.UNSAFE_TAGS:
            for el in self.tree.xpath(".//%s" % tag):
                parent = el.getparent()
                if parent is not None:
                    parent.remove(el)
        return self
dataset/ETHPy150Open lavr/python-emails/emails/transformer.py/BaseTransformer.remove_unsafe_tags/original