Location: PHPKode > scripts > Light BBCode Parser > light-bbcode-parser/demo.php
<html>
	<body>
	
<?php
include_once('lightbbcodeparser.class.php');

$text = '[b]Lorem ipsum[/b] dolor sit amet, consectetur adipisicing [b][u]elit[/u][/b], sed do eiusmod [u]tempor[/u] incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea [b][i]commodo[/i][/b] consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum [color=blue]dolore[/color] eu fugiat nulla pariatur. [b]Excepteur sint occaecat cupidatat non proident, sunt in culpa qui [url=http://en.wikipedia.org/wiki/Main_Page]officia[/url] deserunt mollit anim id est laborum[/b].';

$parser = new LightBBCodeParser();

echo $parser->bbc2html($text);

?>
	</body>
</html>
Return current item: Light BBCode Parser