JBBCode/CodeDefinition.php
public function asText(ElementNode $el)
    {
        if (!$this->hasValidInputs($el)) {
            return $el->getAsBBCode();
        }

        $s = "";
        foreach ($el->getChildren() as $child) {
            $s .= $child->getAsText();
        }
        return $s;
    }
public function asText(ElementNode $el)
    {
        if (!$this->hasValidInputs($el)) {
            return $el->getAsBBCode();
        }

        $s = "";
        foreach ($el->getChildren() as $child) {
            $s .= $child->getAsText();
        }
        return $s;
    }
public function asText ( ElementNode $ el ) { if ( ! $ this -> hasValidInputs ( $ el ) ) { return $ el -> getAsBBCode ( ) ; } $ s = "" ; foreach ( $ el -> getChildren ( ) as $ child ) { $ s .= $ child -> getAsText ( ) ; } return $ s ; }
Accepts an ElementNode that is defined by this CodeDefinition and returns the text
representation of the element. This may be overridden by a custom CodeDefinition.

@param ElementNode $el  the element to return a text representation of

@return string the text representation of $el
Accepts an ElementNode that is defined by this CodeDefinition and returns the text representation of the element . This may be overridden by a custom CodeDefinition .