Created
July 2, 2012 20:44
-
-
Save awartoft/3035592 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Antoine Hedgecock <[email protected]> | |
*/ | |
/** | |
* @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