You are here

function gdpr_text_sanitize in General Data Protection Regulation 7

Text sanitize callback.

1 string reference to 'gdpr_text_sanitize'
TextSanitizer.inc in modules/gdpr_dump/plugins/sanitizer/TextSanitizer.inc

File

modules/gdpr_dump/plugins/sanitizer/TextSanitizer.inc, line 16

Code

function gdpr_text_sanitize($input) {
  if (empty($input)) {
    return $input;
  }
  $output = gdpr_text_remote_generator($input);
  if ($output === $input) {
    $output = gdpr_text_local_generator($input);
  }
  return $output;
}