implement HtmlParser