You are here

function gdpr_text_local_generator in General Data Protection Regulation 7

Local generator for text sanitize.

1 call to gdpr_text_local_generator()
gdpr_text_sanitize in modules/gdpr_dump/plugins/sanitizer/TextSanitizer.inc
Text sanitize callback.

File

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

Code

function gdpr_text_local_generator($input) {
  $random = new GdprDumpUtilRandom();
  return $random
    ->sentences(str_word_count($input));
}