src/ChrisKonnertz/BBCode/BBCode.php
public function renderPlain($text = null)
    {
        if ($this->text !== null and $text === null) {
            $text = $this->text;
        }

        return preg_replace("/\[(.*?)\]/is", '', $text);
    }
public function renderPlain($text = null)
    {
        if ($this->text !== null and $text === null) {
            $text = $this->text;
        }

        return preg_replace("/\[(.*?)\]/is", '', $text);
    }
public function renderPlain ( $ text = null ) { if ( $ this -> text !== null and $ text === null ) { $ text = $ this -> text ; } return preg_replace ( "/\[(.*?)\]/is" , '' , $ text ) ; }
Renders only the text without any BBCode tags.

@param  string $text Optional: Render the passed BBCode string instead of the internally stored one
@return string
Renders only the text without any BBCode tags .