src/sb/Text/Bling.php
public static function convertQuotes($str)
    {

        $r = "/\[q(?:uote)?\](.*?)\[\/q(?:uote)?\]/is";
        while(preg_match($r, $str)){
            $str = preg_replace($r, '<blockquote class="quote"><p>\\1</p></blockquote>', $str);
        }

        return $str;
    }
public static function convertQuotes($str)
    {

        $r = "/\[q(?:uote)?\](.*?)\[\/q(?:uote)?\]/is";
        while(preg_match($r, $str)){
            $str = preg_replace($r, '<blockquote class="quote"><p>\\1</p></blockquote>', $str);
        }

        return $str;
    }
public static function convertQuotes ( $ str ) { $ r = "/\[q(?:uote)?\](.*?)\[\/q(?:uote)?\]/is" ; while ( preg_match ( $ r , $ str ) ) { $ str = preg_replace ( $ r , '<blockquote class="quote"><p>\\1</p></blockquote>' , $ str ) ; } return $ str ; }
Converts quotes into quoted text blocks

@param unknown_type $str
Converts quotes into quoted text blocks