From 0ec1a128b00d297e6b72c55f87b3e63fee41caf1 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Wed, 13 Dec 2023 11:33:12 +0100 Subject: [PATCH] Fix display of HTML options of dropdown element --- .../common/components/input-elements/dropdown.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/components/input-elements/dropdown.component.ts b/projects/common/components/input-elements/dropdown.component.ts index dec7abf91..e56ddc631 100644 --- a/projects/common/components/input-elements/dropdown.component.ts +++ b/projects/common/components/input-elements/dropdown.component.ts @@ -20,8 +20,8 @@ import { FormElementComponent } from '../../directives/form-element-component.di (click)="$event.preventDefault()"> </mat-option> <mat-option *ngFor="let option of elementModel.options; let i = index" [value]="i" - [class.read-only]="elementModel.readOnly"> - {{option.text}} + [class.read-only]="elementModel.readOnly" + [innerHTML]="option.text | safeResourceHTML"> </mat-option> </mat-select> <mat-error *ngIf="elementFormControl.errors"> -- GitLab