Msg#: 3576116 posted 7:53 pm on Feb 15, 2008 (gmt 0)
I'm curious about people's opinions on where in code to do the actual preg_replace that turns bbcode back into html code.
For example, I have a few fields in a database that store text and bbcode. Right now, I call my bb_decode function anytime I want to display that text on a page (which means the function is scattered all over the place).
Is this how webmasterworld does this kind of thing? Or are there other ways to this?