Master_script_maker
12-31-2007, 10:42 PM
I have made a simple php bbcode parser that recognizes
[ b ],[ i ], [ u ], [ url ], [ url= ], [ align= ], [ img ], [ img= ], [ email ], [ email= ], [ font= ], [ size= ], [ color= ], [ quote ], [ code ], [ php ]
(without the spaces)
The function returns a value so use:
$var=bbcode_format($text);
Demo: http://masterproject.freehostia.com/bbcode/bbcode.php
Code: http://masterproject.freehostia.com/bbcode/parser.txt
[ b ],[ i ], [ u ], [ url ], [ url= ], [ align= ], [ img ], [ img= ], [ email ], [ email= ], [ font= ], [ size= ], [ color= ], [ quote ], [ code ], [ php ]
(without the spaces)
The function returns a value so use:
$var=bbcode_format($text);
Demo: http://masterproject.freehostia.com/bbcode/bbcode.php
Code: http://masterproject.freehostia.com/bbcode/parser.txt