public function sanitizeInput(&$array) {
        foreach ($array as $key => &$value) {
            if(!is_array($value)) {
                if ($key == 'content') {
                    $value = sanitize_textarea_field($value);
                } else {
                    $value = sanitize_text_field($value);
                }
            } else {
                $this->sanitizeInput($value);
            }
        }

        return $array;
    }