remove closing body and html tag