Skip to content

Commit

Permalink
BC-5702 - Add DecodeHtmlEntities decorator to caption and alternatveT…
Browse files Browse the repository at this point in the history
…ext response (#4528)
  • Loading branch information
bischofmax authored Nov 9, 2023
1 parent 96b199f commit 59ca98c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { DecodeHtmlEntities } from '@shared/controller';
import { ContentElementType } from '@shared/domain';
import { TimestampsResponse } from '../timestamps.response';

Expand All @@ -9,9 +10,11 @@ export class FileElementContent {
}

@ApiProperty()
@DecodeHtmlEntities()
caption: string;

@ApiProperty()
@DecodeHtmlEntities()
alternativeText: string;
}

Expand Down

0 comments on commit 59ca98c

Please sign in to comment.