def strip(self, rawstring, escape=True):

        if not isinstance(rawstring, str):
            return str(rawstring)
        for tag in self.requires_no_close:
            rawstring = rawstring.replace("<%s/>" % tag, "<%s />" % tag)
        if not escape:
            self.strip_disallowed = True
        self.result = ''
        self.feed(rawstring)
        for endtag in self.open_tags:
            if endtag not in self.requires_no_close:
                self.result += '</%s>' % endtag
        return self.result
Returns the argument stripped of potentially harmful
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/sanitizer.py/XssCleaner.strip