private static function htmlencodeParams(array $params, $removeKey = '')
    {
        if ($removeKey) {
            unset($params[$removeKey]);
        }

        return array_map(
            function ($val) {
                return htmlspecialchars($val, ENT_QUOTES);
            },
            $params
        );
    }
private static function htmlencodeParams(array $params, $removeKey = '')
    {
        if ($removeKey) {
            unset($params[$removeKey]);
        }

        return array_map(
            function ($val) {
                return htmlspecialchars($val, ENT_QUOTES);
            },
            $params
        );
    }
private static function htmlencodeParams ( array $ params , $ removeKey = '' ) { if ( $ removeKey ) { unset ( $ params [ $ removeKey ] ) ; } return array_map ( function ( $ val ) { return htmlspecialchars ( $ val , ENT_QUOTES ) ; } , $ params ) ; }
Encode array values as html special chars.

@param array  $params    Parameter to encode
@param string $removeKey If not empty the key is removed from result

@return array
Encode array values as html special chars .