Safely filter snippet content