public static function process($content, $processor)
    {
        switch ($processor) {
            case 'plain':
                $content = static::plainProcessor($content);
                break;

            case 'filtered':
                $content = static::filteredProcessor($content);
                break;

            case 'markdown':
                $content = static::markdownProcessor($content);
                break;
        }

        return $content;
    }
public static function process($content, $processor)
    {
        switch ($processor) {
            case 'plain':
                $content = static::plainProcessor($content);
                break;

            case 'filtered':
                $content = static::filteredProcessor($content);
                break;

            case 'markdown':
                $content = static::markdownProcessor($content);
                break;
        }

        return $content;
    }
public static function process ( $ content , $ processor ) { switch ( $ processor ) { case 'plain' : $ content = static :: plainProcessor ( $ content ) ; break ; case 'filtered' : $ content = static :: filteredProcessor ( $ content ) ; break ; case 'markdown' : $ content = static :: markdownProcessor ( $ content ) ; break ; } return $ content ; }
Process the given text to its corresponding format.

@param string $content Content to process
@param string $processor "plain", "filtered", "markdown" or "full"
@return string
Process the given text to its corresponding format .