public function xssFunc($data)
    {
        if (!\is_array($data)) {
            return Security::detectXss($data);
        }

        $results = Security::detectXssFromArray($data);
        $results_parts = array_map(function($value, $key) {
            return $key.': \''.$value . '\'';
        }, array_values($results), array_keys($results));

        return implode(', ', $results_parts);
    }
public function xssFunc($data)
    {
        if (!\is_array($data)) {
            return Security::detectXss($data);
        }

        $results = Security::detectXssFromArray($data);
        $results_parts = array_map(function($value, $key) {
            return $key.': \''.$value . '\'';
        }, array_values($results), array_keys($results));

        return implode(', ', $results_parts);
    }
public function xssFunc ( $ data ) { if ( ! \ is_array ( $ data ) ) { return Security :: detectXss ( $ data ) ; } $ results = Security :: detectXssFromArray ( $ data ) ; $ results_parts = array_map ( function ( $ value , $ key ) { return $ key . ': \'' . $ value . '\'' ; } , array_values ( $ results ) , array_keys ( $ results ) ) ; return implode ( ', ' , $ results_parts ) ; }
Allow quick check of a string for XSS Vulnerabilities

@param string|array $data
@return bool|string|array
Allow quick check of a string for XSS Vulnerabilities