Make allowedTags argument available to helper function