From 81aa96ebe7ad057ce887614c6b2f531c94edcf79 Mon Sep 17 00:00:00 2001 From: Max Bischof Date: Tue, 7 Nov 2023 19:34:43 +0100 Subject: [PATCH] Add DecodeHtmlEntities decorator to caption and alternatveText response --- .../board/controller/dto/element/file-element.response.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/server/src/modules/board/controller/dto/element/file-element.response.ts b/apps/server/src/modules/board/controller/dto/element/file-element.response.ts index 0fa23a7f735..d6c5122358f 100644 --- a/apps/server/src/modules/board/controller/dto/element/file-element.response.ts +++ b/apps/server/src/modules/board/controller/dto/element/file-element.response.ts @@ -1,4 +1,5 @@ import { ApiProperty } from '@nestjs/swagger'; +import { DecodeHtmlEntities } from '@shared/controller'; import { ContentElementType } from '@shared/domain'; import { TimestampsResponse } from '../timestamps.response'; @@ -9,9 +10,11 @@ export class FileElementContent { } @ApiProperty() + @DecodeHtmlEntities() caption: string; @ApiProperty() + @DecodeHtmlEntities() alternativeText: string; }