optimize html-parser