You are here

function _commerce_sagepay_clean_input in Drupal Commerce SagePay Integration 7

Remove unwanted characters from strings.

Parameters

string $text: The string to clean.

string $type: The type of string being cleaned.

Return value

string The clean string.

1 call to _commerce_sagepay_clean_input()
commerce_sagepay_server_handle_callback in includes/commerce_sagepay_server.inc
Process the callback that is sent by SagePay Server.

File

includes/commerce_sagepay_utils.inc, line 267
commerce_sagepay_utils.inc Common utilities shared by all Integration methods.

Code

function _commerce_sagepay_clean_input($text, $type) {
  $clean_text = check_plain($text);
  return $clean_text;
}