public static function asText($richText)
    {
        $result = '';
        foreach ($richText as $block) {
            if (isset($block->text)) {
                $result .= $block->text . "\n";
            }
        }
        return $result;
    }
public static function asText($richText)
    {
        $result = '';
        foreach ($richText as $block) {
            if (isset($block->text)) {
                $result .= $block->text . "\n";
            }
        }
        return $result;
    }
public static function asText ( $ richText ) { $ result = '' ; foreach ( $ richText as $ block ) { if ( isset ( $ block -> text ) ) { $ result .= $ block -> text . "\n" ; } } return $ result ; }
Builds a text version of the RichText fragment


@param object $richText the rich text object

@return string the text version of the RichText fragment
Builds a text version of the RichText fragment