4 <?php if (!extension_loaded("bbcode")) print "skip"; ?>
10 'type' => BBCODE::TYPE_ROOT,
11 'child' => ['ul','url','img','b','i']
14 'type' => BBCODE::TYPE_MULTI
15 //TODO: by default open tag = <KEY> and close tag = </KEY>
18 'type' => BBCODE::TYPE_MULTI
21 'type' => BBCODE::TYPE_MULTI,
25 'type' => BBCODE::TYPE_MULTI,
27 'child' => ['url','img','b','i']
30 'type' => BBCODE::TYPE_MULTI,
31 'parent' => [ '', 'li', 'b', 'i', null, 'toto', 0, 42 ],
32 'open' => '<a href="{PARAM}">',
34 'default' => '{CONTENT}'
38 ':)' => '<img src="smiley.gif" alt=":)" />',
39 ':(' => '<img src="sad.gif" alt=":(" />',
40 ':D' => '<img src="happy.gif" alt=":D" />',
41 ':p' => '<img src="tong.gif" alt=":p" />',
42 ':|' => '<img src="special.gif" alt=":|" />',
43 ':6:' => '<img src="six.gif" alt=":6:" />',
48 echo $cln->parse('[ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]');
51 [ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]