def __init__(self, parser, name, attrs=None, parent=None,<EOL>previous=None):
<EOL>self.parserClass = parser.__class__<EOL>self.isSelfClosing = parser.isSelfClosingTag(name)<EOL>self.name = name<EOL>if attrs == None:<EOL><INDENT>attrs = []<EOL><DEDENT>self.attrs = attrs<EOL>self.contents = []<EOL>self.setup(parent, previous)<EOL>self.hidden = False<EOL>self.containsSubstitutions = False<EOL>self.convertHTMLEntities = parser.convertHTMLEntities<EOL>self.convertXMLEntities = parser.convertXMLEntities<EOL>self.escapeUnrecognizedEntities = parser.escapeUnrecognizedEntities<EOL>convert = lambda k_val: (k_val[<NUM_LIT:0>],<EOL>re.sub("<STR_LIT>",<EOL>self._convertEntities,<EOL>k_val[<NUM_LIT:1>]))<EOL>self.attrs = list(map(convert, self.attrs))<EOL>
Basic constructor.