I'm not sure about the PEAR package. I never really got into that stuff.
But as far as I know, you should only have to install it, by typing something like this into a cmd.exe window:
- pear install HTML_BBCodeParser
And then you should be able to use it, like:
-
<?php
-
// Load and create object
-
require_once('HTML/BBCodeParser.php');
-
$parser = new HTML_BBCodeParser();
-
-
// Parse some text
-
$parser->setText($_POST['SomeString']);
-
$parser->parse();
-
-
// Print the parsed text
-
echo $parser->getParsed();
-
?>
-