public function parse($data)
    {
        $this->table();
        $this->images();
        $this->text();
        $this->html();

        // Replace everything that has been found
        foreach ($this->matches as $key => $val) {
            $data = preg_replace_callback($key, $val, $data);
        }

        // Replace line-breaks
        return preg_replace_callback("/\n\r?/", function () {
            return '<br />';
        }, $data
        );
    }
public function parse($data)
    {
        $this->table();
        $this->images();
        $this->text();
        $this->html();

        // Replace everything that has been found
        foreach ($this->matches as $key => $val) {
            $data = preg_replace_callback($key, $val, $data);
        }

        // Replace line-breaks
        return preg_replace_callback("/\n\r?/", function () {
            return '<br />';
        }, $data
        );
    }
public function parse ( $ data ) { $ this -> table ( ) ; $ this -> images ( ) ; $ this -> text ( ) ; $ this -> html ( ) ; // Replace everything that has been found foreach ( $ this -> matches as $ key => $ val ) { $ data = preg_replace_callback ( $ key , $ val , $ data ) ; } // Replace line-breaks return preg_replace_callback ( "/\n\r?/" , function ( ) { return '<br />' ; } , $ data ) ; }
Parse a text and replace the BBCodes

@access    public

@param    string $data

@return    string
Parse a text and replace the BBCodes