public static function parse(Tag &$Tag)
    {
        if (!empty($Tag->content) && $Tag->hasOption('translate') && is_callable(Config::get('translator'))) {
            $Tag->content = call_user_func_array(
                Config::get('translator'),
                array(
                    $Tag->content,
                    Config::get('textdomain')
                )
            );
        }
        
        if ($Tag->hasOption('bbContent')) {
            self::bb($Tag->content);
        }

        if ($Tag->hasOption('markdown')) {
            $Tag->addOption('cleanContent');
            self::markdown($Tag->content);
        }

        if ($Tag->hasOption('compress')) {
            self::compress($Tag);
        }

        return $Tag->content;
    }
public static function parse(Tag &$Tag)
    {
        if (!empty($Tag->content) && $Tag->hasOption('translate') && is_callable(Config::get('translator'))) {
            $Tag->content = call_user_func_array(
                Config::get('translator'),
                array(
                    $Tag->content,
                    Config::get('textdomain')
                )
            );
        }
        
        if ($Tag->hasOption('bbContent')) {
            self::bb($Tag->content);
        }

        if ($Tag->hasOption('markdown')) {
            $Tag->addOption('cleanContent');
            self::markdown($Tag->content);
        }

        if ($Tag->hasOption('compress')) {
            self::compress($Tag);
        }

        return $Tag->content;
    }
public static function parse ( Tag & $ Tag ) { if ( ! empty ( $ Tag -> content ) && $ Tag -> hasOption ( 'translate' ) && is_callable ( Config :: get ( 'translator' ) ) ) { $ Tag -> content = call_user_func_array ( Config :: get ( 'translator' ) , array ( $ Tag -> content , Config :: get ( 'textdomain' ) ) ) ; } if ( $ Tag -> hasOption ( 'bbContent' ) ) { self :: bb ( $ Tag -> content ) ; } if ( $ Tag -> hasOption ( 'markdown' ) ) { $ Tag -> addOption ( 'cleanContent' ) ; self :: markdown ( $ Tag -> content ) ; } if ( $ Tag -> hasOption ( 'compress' ) ) { self :: compress ( $ Tag ) ; } return $ Tag -> content ; }
Checks if any parsing method should be appended to the
Tags content.

@param Tag &$Tag a Tag instance.

@return string the tags content.
Checks if any parsing method should be appended to the Tags content .