public function BusinessRulesUtil::applyXssInArray in Business Rules 8
Same name and namespace in other branches
- 2.x src/Util/BusinessRulesUtil.php \Drupal\business_rules\Util\BusinessRulesUtil::applyXssInArray()
Performs Xss filter in all settings.
Parameters
array $array: The settings array.
File
- src/
Util/ BusinessRulesUtil.php, line 1124
Class
- BusinessRulesUtil
- Class BusinessRulesUtil.
Namespace
Drupal\business_rules\UtilCode
public function applyXssInArray(array &$array) {
foreach ($array as $key => $value) {
if (is_array($value)) {
$this
->applyXssInArray($value);
}
elseif (is_string($value)) {
$array[$key] = Xss::filterAdmin($value);
}
}
}