cleanup open/Snippet tag handling