Cleaning up the HTML parser and adding some relevant tests.