htmlparser: minor api changes, added html comments support