You are here

protected function Markdown::_doAutoLinks_email_callback in Express 8

* Parse email address callback *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/Markdown.php, line 1657

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function _doAutoLinks_email_callback($matches) {
  $addr = $matches[1];
  $url = $this
    ->encodeURLAttribute("mailto:{$addr}", $text);
  $link = "<a href=\"{$url}\">{$text}</a>";
  return $this
    ->hashPart($link);
}