Forum Moderators: coopster

Message Too Old, No Replies

what is the best bbcode parser(in php)

         

Xuefer

9:45 am on May 14, 2003 (gmt 0)

10+ Year Member



ubb, vB, phpBB so on
use bbcode
but when we need enhance it be powerful and complex
the speed is a problem
is it slow to preg_replace 10 or 20+ times on a long text?

and i've once read pear\HTML_BBCodeParser
but which is really the best one?

notice that, for common text, there isn't too much bbcode tags in it

and for smilie code, how will u parse it?

jatar_k

3:51 pm on May 15, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Xuefer, you seemed to have stumped everyone.

I don't really know the anser, i dont really use any bbcode stuff. I have worked with a bunch of custom parsers but that is about it.

anyone else familiar with bbcode parsers?

Xuefer

4:04 pm on May 15, 2003 (gmt 0)

10+ Year Member



:P
maybe simple bbcode is enough for most ppl
so they don't care about it

and one more question:
do u store parsed or unparsed content into database?
if unparsed, u have to parse when runtime (viewtime)
or parsed, u will have difficulty when edit/quote, and modify your bbcode-parser
if u store both parsed & unparsed data, u lost spaces

it's annoyed....