Orientação sobre whitelist de atributos HTML arbitrários?

I just realised I never wrote about this, but Generic bbcode wrapper for theme components could be very helpful for your use case.