I would like a function that parses BB Code from vBulletin into a standard HTML markup.
Without using the PEAR library or the PECL extension, because I don't want to fuss with PEAR or have to depend on being able to install a PECL extension on every instance of this application. The goal is zero dependencies. It would be fine if I could find the source code for the PEAR extension and modify that, but I seem to be unable to.
Specifically the trouble I'm having is matching [quote=My Name]
. The name 'My Name' isn't enclosed by anything and can contain spaces.