def strip(self, rawstring):
        """Returns the argument stripped of potentially harmful HTML or Javascript code"""
        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 HTML or Javascript code
recipes/Python/496942_Crosssite_scripting_XSS_defense/recipe-496942.py