I need a function that parses BB code from vBulletin into standard HTML markup.
Without using the PEAR library or the PECL extension, because I do not want to fuss with PEAR or should depend on the ability to install the PECL extension for each instance of this application. The goal is zero dependencies. It would be nice if I could find the source code for the PEAR extension and modify it, but I seem unable.
In particular, the problem I encountered is consistent [quote=My Name]. The name "My Name" is not enclosed in anything and may contain spaces.
source
share