def __init__(self, txt):
        """
        Initialize custom parser properties.
        """
        self.dirty_html = txt
        self.cleaned_html = ''
        self.current_parent_element = {}
        self.current_parent_element['tag'] = ''
        self.current_parent_element['attrs'] = {}
        self.parsing_li = False

        HTMLParser.__init__(self)
def __init__ ( self , txt ) : self . dirty_html = txt self . cleaned_html = '' self . current_parent_element = { } self . current_parent_element [ 'tag' ] = '' self . current_parent_element [ 'attrs' ] = { } self . parsing_li = False HTMLParser . __init__ ( self )
Initialize custom parser properties.