improved [code] and [quote] bbcode transformation