App\Libraries\BBCodeFromDB::parseYoutube PHP Метод

parseYoutube() публичный Метод

public parseYoutube ( $text )
    public function parseYoutube($text)
    {
        $text = str_replace("[youtube:{$this->uid}]", "<div class='bbcode__video-box'><div class='bbcode__video'><iframe src='https://www.youtube.com/embed/", $text);
        $text = str_replace("[/youtube:{$this->uid}]", "?rel=0' frameborder='0' allowfullscreen></iframe></div></div>", $text);
        return $text;
    }