Snippet sanitization