Rewrite of htmlparser