Skip to content

Commit

Permalink
Add DecodeHtmlEntities decorator to caption and alternatveText response
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax committed Nov 7, 2023
1 parent cbf3940 commit 81aa96e
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 81aa96e

Please sign in to comment.