Skip to content

Instantly share code, notes, and snippets.

@awartoft
Created July 2, 2012 20:44
Show Gist options
  • Select an option

  • Save awartoft/3035592 to your computer and use it in GitHub Desktop.

Select an option

Save awartoft/3035592 to your computer and use it in GitHub Desktop.
<?php
/**
* @author Antoine Hedgecock <antoine@pmg.se>
*/
/**
* @namespace
*/
namespace MCNCore\View\Helper;
use Zend\Markup\Markup,
Zend\View\Helper\AbstractHelper;
class RenderBBCode extends AbstractHelper
{
public function __invoke($string)
{
$factory = Markup::factory('bbcode');
return $factory->render($string);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment