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;
    }