Remove certain tags from a chunk of HTML code