Remove the unnecessary tags.