html attributes serializer