<html>
<head>
<style type="text/css">
<!--
pre.ubb_def {
color:blue;
font-family:Courir;
}
-->
</style>
</head>
<body>
<?php
require_once "UBBCode.php";
$class = new UBBCode;
$text ="<B>Hello, this a [i][b][color=green]UBB[/color] Code[/b] Test[/i]...\n...end</B>";
$encode = $class->encode($text);
$class->listCodes();
echo $encode;
echo "<p>\n";
echo $class->decode($encode);
echo "<p>\n";
echo $class->strip($text);
?>
</body>
</html>
|