This might be useful (for other BBCode) as a separate function which accepts parameters on what tags to look for.