diff --git a/app/serializers/protocol_serializer.rb b/app/serializers/protocol_serializer.rb index dec9394be..e5a0cb514 100644 --- a/app/serializers/protocol_serializer.rb +++ b/app/serializers/protocol_serializer.rb @@ -17,7 +17,7 @@ class ProtocolSerializer < ActiveModel::Serializer def added_by { avatar: object.added_by&.avatar_url(:icon_small), - name: escape_input(object.added_by&.full_name) + name: object.added_by&.full_name } end diff --git a/app/serializers/step_serializer.rb b/app/serializers/step_serializer.rb index 07d091d7a..06e983417 100644 --- a/app/serializers/step_serializer.rb +++ b/app/serializers/step_serializer.rb @@ -107,6 +107,6 @@ class StepSerializer < ActiveModel::Serializer end def created_by - escape_input(object.user.full_name) + object.user.full_name end end