A person was taken to the hospital after being exposed to an unknown substance in San Mateo on Friday, authorities said.