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

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

public parseQuote ( $text )
    public function parseQuote($text)
    {
        $text = preg_replace("#\\[quote=&quot;([^:]+)&quot;:{$this->uid}\\]#", '<h4>\\1 wrote:</h4><blockquote>', $text);
        $text = str_replace("[quote:{$this->uid}]", '<blockquote>', $text);
        $text = str_replace("[/quote:{$this->uid}]", '</blockquote>', $text);
        return $text;
    }