diff --git a/src/backend/api/v1/profile/serializers.py b/src/backend/api/v1/profile/serializers.py index 0781e5d..9b54032 100644 --- a/src/backend/api/v1/profile/serializers.py +++ b/src/backend/api/v1/profile/serializers.py @@ -1,4 +1,4 @@ -import html +# import html from typing import ClassVar, Optional import bleach @@ -233,10 +233,10 @@ class Meta(BaseProfileSerializer.Meta): ) read_only_fields = fields - def to_representation(self, instance): - rep = super().to_representation(instance) - rep["about"] = html.unescape(rep["about"]) - return rep + # def to_representation(self, instance): + # rep = super().to_representation(instance) + # rep["about"] = html.unescape(rep["about"]) + # return rep class ProfileMeWriteSerializer(ProfileMeReadSerializer): diff --git a/src/backend/api/v1/projects/serializers.py b/src/backend/api/v1/projects/serializers.py index 68de6a5..9910bed 100644 --- a/src/backend/api/v1/projects/serializers.py +++ b/src/backend/api/v1/projects/serializers.py @@ -1,3 +1,4 @@ +import html from itertools import chain from typing import Any, ClassVar, Dict, Optional, OrderedDict, Tuple @@ -186,10 +187,10 @@ def get_unique_project_participants_skills(self, obj) -> list[Any]: ) return list(set(all_skills)) - # def to_representation(self, instance): - # rep = super().to_representation(instance) - # rep["description"] = html.unescape(rep["description"]) - # return rep + def to_representation(self, instance): + rep = super().to_representation(instance) + rep["description"] = html.unescape(rep["description"]) + return rep class WriteProjectSerializer(