class MyHTMLParser(HTMLParser):

    def reset(self):
        HTMLParser.reset(self)
self.pages = []
self.text = []
self.is_li = False
self.num_as = 0
self.close_a = False
self.close_li = False

def handle_starttag(self, tag, attrs):
    pass
Python HTMLParser dividing data at &