original_string: protected function _linkEmails($text, $options)
      {
          $replace = [];
          foreach ($this->_placeholders as $hash => $content) {
              $url = $content['content'];
              $envelope = $content['envelope'];
              $replace[$hash] = $envelope[0] . $this->Html->link($url, 'mailto:' . $url, $options) . $envelope[1];
          }
  
          return strtr($text, $replace);
      }
code: protected function _linkEmails($text, $options)
      {
          $replace = [];
          foreach ($this->_placeholders as $hash => $content) {
              $url = $content['content'];
              $envelope = $content['envelope'];
              $replace[$hash] = $envelope[0] . $this->Html->link($url, 'mailto:' . $url, $options) . $envelope[1];
          }
  
          return strtr($text, $replace);
      }
code_tokens: protected function _linkEmails ( $ text , $ options ) { $ replace = [ ] ; foreach ( $ this -> _placeholders as $ hash => $ content ) { $ url = $ content [ 'content' ] ; $ envelope = $ content [ 'envelope' ] ; $ replace [ $ hash ] = $ envelope [ 0 ] . $ this -> Html -> link ( $ url , 'mailto:' . $ url , $ options ) . $ envelope [ 1 ] ; } return strtr ( $ text , $ replace ) ; }
docstring: Links email addresses
  
  @param string $text The text to operate on
  @param array $options An array of options to use for the HTML.
  @return string
  @see \Cake\View\Helper\TextHelper::autoLinkEmails()
docstring_tokens: Links email addresses