public function setPassword($password) { $this->password = htmlspecialchars($password, ENT_COMPAT, "UTF-8"); }