HTML parser in C++