enhance HTML parser delete functionality