Better use of HTMLParser()