changed global ALLOWED_TAGS to a fnc parameter