src/core/class-papi-core-data-handler.php
protected function santize_data( $value ) {
		if ( is_array( $value ) ) {
			foreach ( $value as $k => $v ) {
				if ( is_string( $v ) ) {
					$value[$k] = $this->santize_data( $v );
				}
			}
		} else if ( is_string( $value ) ) {
			$value = wp_unslash( $value );
		}

		return $value;
	}
protected function santize_data( $value ) {
		if ( is_array( $value ) ) {
			foreach ( $value as $k => $v ) {
				if ( is_string( $v ) ) {
					$value[$k] = $this->santize_data( $v );
				}
			}
		} else if ( is_string( $value ) ) {
			$value = wp_unslash( $value );
		}

		return $value;
	}
Sanitize data before saving it.

@param  mixed $value

@return mixed