delete useless code in html tag