public function parse($text, $filter)
    {
        $this->current = new \stdClass();
        $this->current->frontmatter = [];
        $this->current->text = $text;

        foreach ($filter as $key) {
            $this->parseFactory($key);
        }

        $this->current->text = $this->getUntilStop($this->current->text);

        return $this->current;
    }
public function parse($text, $filter)
    {
        $this->current = new \stdClass();
        $this->current->frontmatter = [];
        $this->current->text = $text;

        foreach ($filter as $key) {
            $this->parseFactory($key);
        }

        $this->current->text = $this->getUntilStop($this->current->text);

        return $this->current;
    }
public function parse ( $ text , $ filter ) { $ this -> current = new \ stdClass ( ) ; $ this -> current -> frontmatter = [ ] ; $ this -> current -> text = $ text ; foreach ( $ filter as $ key ) { $ this -> parseFactory ( $ key ) ; } $ this -> current -> text = $ this -> getUntilStop ( $ this -> current -> text ) ; return $ this -> current ; }
Call each filter and return array with details of the formatted content.

@param string $text   the text to filter.
@param array  $filter array of filters to use.

@throws Anax\TextFilter\Exception  when filter does not exists.

@return array with the formatted text and additional details.
Call each filter and return array with details of the formatted content .