Часть моего текста в <mat-option>
должна быть поражена. Проблема в том, что выбранное значение теряет свой HTML-тег.
Это раскрывающийся список:
![enter image description here](https://i.stack.imgur.com/LukP7.png)
И это выбранное значение:
![enter image description here](https://i.stack.imgur.com/2TTDG.png)
Это HTML-код:
<div fxLayout="row" fxLayoutAlign="start baseline">
<span fxFlex="0 0 110px" class="text-sm text-muted-dk">Currency Position</span>
<div fxLayout="column" fxFlex>
<mat-form-field fxFlex>
<mat-select #navigationArrowMode [formControl]="form.controls['currencyPosition']">
<mat-option
*ngFor="let currencyPosition of currencyPositions"
[value]="currencyPosition"
>
{{ CurrencyPositionToLabelMapping[currencyPosition] }}</mat-option
>
</mat-select>
</mat-form-field>
</div>
</div>
Машинописный код:
this.PriceOrderToLabelMapping = {
[PriceOrders.OriginalFirst]: `<del>$110</del> $99 Sale`,
[PriceOrders.SalePriceFirst]: `$99 Sale <del>$110</del>`
};