public function sanitize($input) { return is_string($input) ? strip_tags($input, $this->allowedTags) : $input; }