src/Tools/Utilities.php
public function cleanArray(array $data)
    {
        $cleanedArray = [];

        foreach ($data as $key => $value) {
            $cleanedArray[$key] = \is_array($value)
                ? $this->cleanArray($value)
                : $this->getSafeArray($key, $data);
        }

        return $cleanedArray;
    }
public function cleanArray(array $data)
    {
        $cleanedArray = [];

        foreach ($data as $key => $value) {
            $cleanedArray[$key] = \is_array($value)
                ? $this->cleanArray($value)
                : $this->getSafeArray($key, $data);
        }

        return $cleanedArray;
    }
public function cleanArray ( array $ data ) { $ cleanedArray = [ ] ; foreach ( $ data as $ key => $ value ) { $ cleanedArray [ $ key ] = \ is_array ( $ value ) ? $ this -> cleanArray ( $ value ) : $ this -> getSafeArray ( $ key , $ data ) ; } return $ cleanedArray ; }
Scrub an entire array of potentially harmful client data with htmlspecialchars.

@param array $data
@return array
Scrub an entire array of potentially harmful client data with htmlspecialchars .