Skip to content

Instantly share code, notes, and snippets.

@padraic
Created December 23, 2009 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padraic/262551 to your computer and use it in GitHub Desktop.
Save padraic/262551 to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 1);
require_once 'Zend/Markup.php';
$source = <<<string
[list]
[*] Subject 1
[list]
[*] First
[*] Second
[/list]
[*] Subject 2
[/list]
string;
$bbcode = Zend_Markup::factory('Bbcode');
echo $bbcode->render($source);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment