sanitizes tags