Skip to content

Commit

Permalink
Merge pull request #13686 from ashikjs/issues-13637/panelmenu-submenu…
Browse files Browse the repository at this point in the history
…-html-support-issue

fix: #13637 || Component: Panelmenu SubMenus not supported HTML
  • Loading branch information
cetincakiroglu authored Sep 22, 2023
2 parents 0bf5750 + 8d98f7e commit 1cbcf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/panelmenu/panelmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import { ObjectUtils, UniqueComponentId } from 'primeng/utils';
<ng-template *ngTemplateOutlet="panelMenu.submenuIconTemplate"></ng-template>
</ng-container>
<span class="p-menuitem-icon" [ngClass]="processedItem.icon" *ngIf="processedItem.icon" [ngStyle]="getItemProp(processedItem, 'iconStyle')"></span>
<span class="p-menuitem-text" *ngIf="processedItem.escape !== false; else htmlLabel">{{ getItemProp(processedItem, 'label') }}</span>
<span class="p-menuitem-text" *ngIf="processedItem.item?.escape !== false; else htmlLabel">{{ getItemProp(processedItem, 'label') }}</span>
<ng-template #htmlLabel><span class="p-menuitem-text" [innerHTML]="getItemProp(processedItem, 'label')"></span></ng-template>
<span class="p-menuitem-badge" *ngIf="processedItem.badge" [ngClass]="processedItem.badgeStyleClass">{{ processedItem.badge }}</span>
</a>
Expand Down

1 comment on commit 1cbcf73

@vercel
Copy link

@vercel vercel bot commented on 1cbcf73 Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.