protected function _insertPlaceHolder($matches)
    {
        $match = $matches[0];
        $envelope = ['', ''];
        if (isset($matches['url'])) {
            $match = $matches['url'];
            $envelope = [$matches['left'], $matches['right']];
        }
        if (isset($matches['url_bare'])) {
            $match = $matches['url_bare'];
        }
        $key = hash_hmac('sha1', $match, Security::getSalt());
        $this->_placeholders[$key] = [
            'content' => $match,
            'envelope' => $envelope
        ];

        return $key;
    }
protected function _insertPlaceHolder($matches)
    {
        $match = $matches[0];
        $envelope = ['', ''];
        if (isset($matches['url'])) {
            $match = $matches['url'];
            $envelope = [$matches['left'], $matches['right']];
        }
        if (isset($matches['url_bare'])) {
            $match = $matches['url_bare'];
        }
        $key = hash_hmac('sha1', $match, Security::getSalt());
        $this->_placeholders[$key] = [
            'content' => $match,
            'envelope' => $envelope
        ];

        return $key;
    }
protected function _insertPlaceHolder ( $ matches ) { $ match = $ matches [ 0 ] ; $ envelope = [ '' , '' ] ; if ( isset ( $ matches [ 'url' ] ) ) { $ match = $ matches [ 'url' ] ; $ envelope = [ $ matches [ 'left' ] , $ matches [ 'right' ] ] ; } if ( isset ( $ matches [ 'url_bare' ] ) ) { $ match = $ matches [ 'url_bare' ] ; } $ key = hash_hmac ( 'sha1' , $ match , Security :: getSalt ( ) ) ; $ this -> _placeholders [ $ key ] = [ 'content' => $ match , 'envelope' => $ envelope ] ; return $ key ; }
Saves the placeholder for a string, for later use. This gets around double
escaping content in URL's.

@param array $matches An array of regexp matches.
@return string Replaced values.
Saves the placeholder for a string for later use . This gets around double escaping content in URL s .