Reordered setting of allowed_tags and bad_tags since bad_tags was dependent on allowed_tags.