private static function CleanerCacheController::sanitize in Cleaner 8
Sanitize the string.
Parameters
string $input: Input to be sanitized.
Return value
string|null Sanitized string.
1 call to CleanerCacheController::sanitize()
- CleanerCacheController::explode in src/
Controller/ CleanerCacheController.php - Explode the string into the array.
File
- src/
Controller/ CleanerCacheController.php, line 184
Class
- CleanerCacheController
- Class CleanerCacheController.
Namespace
Drupal\cleaner\ControllerCode
private static function sanitize($input = '') {
return !empty($input) && is_string($input) ? Xss::filter(trim($input)) : NULL;
}