public function youtube($text)
    {
        return preg_replace_callback($this->pattern['youtube'], function ($matches) {
            $id = is_url($matches[1]) ? Youtube::getId($matches[1]) : $matches[1];

            return $this->Html->youtube($id);
        }, $text);
    }