def handle_starttag(self, tag, attrs):
if tag.lower() in self.allowed_tag_whitelist:<EOL><INDENT>if tag.lower() == '<STR_LIT>':<EOL><INDENT>self.previous_nbs.append(self.nb)<EOL>self.nb = <NUM_LIT:0><EOL>self.previous_type_lists.append(tag.lower())<EOL>self.result = self.result.rstrip()<EOL><DEDENT>elif tag.lower() == '<STR_LIT>':<EOL><INDENT>self.previous_type_lists.append(tag.lower())<EOL>self.result = self.result.rstrip()<EOL><DEDENT>elif tag.lower() == '<STR_LIT>':<EOL><INDENT>self.result = self.result.rstrip()<EOL>if self.previous_type_lists[-<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>self.nb += <NUM_LIT:1><EOL>self.result += '<STR_LIT:\n>' + self.line_quotation +'<STR_LIT:U+0020>' * len(self.previous_type_lists) +str(self.nb) + '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>self.result += '<STR_LIT:\n>' + self.line_quotation +'<STR_LIT:U+0020>' * len(self.previous_type_lists) + '<STR_LIT>'<EOL><DEDENT><DEDENT>elif tag.lower() == '<STR_LIT:a>':<EOL><INDENT>for (attr, value) in attrs:<EOL><INDENT>if attr.lower() == '<STR_LIT>':<EOL><INDENT>self.url = value<EOL>self.result += '<STR_LIT:<>' + value + '<STR_LIT:>>'<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Function called for new opening tags