Created
December 23, 2009 17:07
-
-
Save padraic/262640 to your computer and use it in GitHub Desktop.
This file contains 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 | |
ini_set('display_errors', 1); | |
require_once 'Zend/Markup.php'; | |
$source = <<<string | |
[ adfdsfda [url]http://example.com[url] | |
string; | |
$bbcode = Zend_Markup::factory('Bbcode'); | |
echo $bbcode->render($source); | |
// [ adfdsfda [url]http://example.com[url adfdsfda [url]http://example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment