def handle_endtag(self, tag):
if tag.lower() in self.allowed_tag_whitelist:<EOL><INDENT>self.result += '<STR_LIT>' + tag + '<STR_LIT:>>'<EOL><DEDENT>else:<EOL><INDENT>if self.render_unallowed_tags:<EOL><INDENT>self.result += '<STR_LIT>' + cgi.escape(tag) + '<STR_LIT>'<EOL><DEDENT><DEDENT>if tag == '<STR_LIT>' or tag == '<STR_LIT>':<EOL><INDENT>self.silent = False<EOL><DEDENT>
Function called for ending of tags