diff --git a/app/views/api/projects/index.json.jbuilder b/app/views/api/projects/index.json.jbuilder index 15b4e3f5c..616297a2a 100644 --- a/app/views/api/projects/index.json.jbuilder +++ b/app/views/api/projects/index.json.jbuilder @@ -1,7 +1,8 @@ # frozen_string_literal: true json.projects @projects do |project| - json.extract! project, :id, :name, :description, :licence_id, :slug, :state + json.extract! project, :id, :name, :licence_id, :slug, :state + json.description sanitize(project.description) json.author_id project.author.user_id json.project_image project.project_image.attachment.medium.url if project.project_image