pub fn sanitize_text_with_env( text: &str, env: impl IntoIterator<Item = (String, String)>, ) -> Result<String, String>