delete needless html code