src/SlimController/SlimController.php
protected function cleanupParam($value)
    {
        if (is_array($value)) {
            foreach ($value as $k => $v) {
                $clean = $this->cleanupParam($v);
                if (!is_null($clean)) {
                    $value[$k] = $clean;
                }
            }

            return $value;
        } else {
            return preg_replace('/>/', '', preg_replace('/</', '', $value));
        }
    }
protected function cleanupParam($value)
    {
        if (is_array($value)) {
            foreach ($value as $k => $v) {
                $clean = $this->cleanupParam($v);
                if (!is_null($clean)) {
                    $value[$k] = $clean;
                }
            }

            return $value;
        } else {
            return preg_replace('/>/', '', preg_replace('/</', '', $value));
        }
    }
protected function cleanupParam ( $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ k => $ v ) { $ clean = $ this -> cleanupParam ( $ v ) ; if ( ! is_null ( $ clean ) ) { $ value [ $ k ] = $ clean ; } } return $ value ; } else { return preg_replace ( '/>/' , '' , preg_replace ( '/</' , '' , $ value ) ) ; } }
Cleans up a single or a list of params by stripping HTML encodings

@param string $value

@return string
Cleans up a single or a list of params by stripping HTML encodings