src/Netzmacht/Bootstrap/Buttons/Factory.php
protected static function encodeValue($button)
    {
        if (isset($button['button']) && $button['button'] == 'link') {
            if (substr($button['value'], 0, 7) == 'mailto:') {
                if (version_compare(VERSION . '.' . BUILD, '3.5.5', '>=')) {
                    $button['value'] = \StringUtil::encodeEmail($button['value']);
                } else {
                    $button['value'] = \String::encodeEmail($button['value']);
                }
            } else {
                $button['value'] = ampersand($button['value']);
            }
        }

        return $button;
    }
protected static function encodeValue($button)
    {
        if (isset($button['button']) && $button['button'] == 'link') {
            if (substr($button['value'], 0, 7) == 'mailto:') {
                if (version_compare(VERSION . '.' . BUILD, '3.5.5', '>=')) {
                    $button['value'] = \StringUtil::encodeEmail($button['value']);
                } else {
                    $button['value'] = \String::encodeEmail($button['value']);
                }
            } else {
                $button['value'] = ampersand($button['value']);
            }
        }

        return $button;
    }
protected static function encodeValue ( $ button ) { if ( isset ( $ button [ 'button' ] ) && $ button [ 'button' ] == 'link' ) { if ( substr ( $ button [ 'value' ] , 0 , 7 ) == 'mailto:' ) { if ( version_compare ( VERSION . '.' . BUILD , '3.5.5' , '>=' ) ) { $ button [ 'value' ] = \ StringUtil :: encodeEmail ( $ button [ 'value' ] ) ; } else { $ button [ 'value' ] = \ String :: encodeEmail ( $ button [ 'value' ] ) ; } } else { $ button [ 'value' ] = ampersand ( $ button [ 'value' ] ) ; } } return $ button ; }
Encode button value.

@param array $button Button definition.

@return array
Encode button value .