Return hash from sanitize_attributes