Deletes unnecessary html code