adapt xbbcode