protected function _strip(array $nodes, array $wrapper = array()) {
        $parsed = '';

        if (!$nodes) {
            return $parsed;
        }

        foreach ($nodes as $node) {
            if (is_string($node)) {
                if (!$wrapper) {
                    $parsed .= $this->convertLineBreaks($node);
                } else {
                    $parsed .= $node;
                }
            } else {
                $parsed .= $this->getFilterByTag($node['tag'])->strip($node, $this->_strip($node['children'], $node));
            }
        }

        return $parsed;
    }
protected function _strip(array $nodes, array $wrapper = array()) {
        $parsed = '';

        if (!$nodes) {
            return $parsed;
        }

        foreach ($nodes as $node) {
            if (is_string($node)) {
                if (!$wrapper) {
                    $parsed .= $this->convertLineBreaks($node);
                } else {
                    $parsed .= $node;
                }
            } else {
                $parsed .= $this->getFilterByTag($node['tag'])->strip($node, $this->_strip($node['children'], $node));
            }
        }

        return $parsed;
    }
protected function _strip ( array $ nodes , array $ wrapper = array ( ) ) { $ parsed = '' ; if ( ! $ nodes ) { return $ parsed ; } foreach ( $ nodes as $ node ) { if ( is_string ( $ node ) ) { if ( ! $ wrapper ) { $ parsed .= $ this -> convertLineBreaks ( $ node ) ; } else { $ parsed .= $ node ; } } else { $ parsed .= $ this -> getFilterByTag ( $ node [ 'tag' ] ) -> strip ( $ node , $ this -> _strip ( $ node [ 'children' ] , $ node ) ) ; } } return $ parsed ; }
Cycle through the nodes and strip out tags and content.

@param array $nodes
@param array $wrapper
@return string
Cycle through the nodes and strip out tags and content .