Skip to content

Commit

Permalink
Allow escaped html to render in support tickets.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Jun 14, 2023
1 parent 0b28af1 commit 728e489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h4 class="p-0 mr-2">
</div>
<div class="card-body">
<app-long-content-hider>
<p class="card-text" [innerHtml]="ctx.ticket.description"></p>
<p class="card-text">{{ ctx.ticket.description }}</p>
</app-long-content-hider>
<ng-container *ngIf="editingContent && changedTicket && !!changedTicket?.id">
<textarea type="text" class="form-control w-100 text-white" rows=8 autocomplete="off"
Expand Down Expand Up @@ -152,7 +152,7 @@ <h4 class="mt-2 d-flex justify-content-between">
</div>
<div class="card-body">
<app-long-content-hider>
<p class="card-text" [innerHtml]="activity.message"></p>
<p class="card-text">{{ activity.message }}></p>
</app-long-content-hider>
<div *ngIf="activity.attachmentFiles?.length" class="d-flex overflow-auto my-auto">
<ng-container *ngFor="let file of activity.attachmentFiles; let j = index;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export class TicketDetailsComponent implements AfterViewInit, OnDestroy {
enlarge(attachmentList: AttachmentFile[], index: number, objectUrls: SafeResourceUrl[] | undefined) {
// Abort if the list of URLs we reference isn't initialized yet
if (objectUrls == undefined) return;

// Otherwise, set the currently selected object URLs to be the given ones
this.selectedObjectUrls = objectUrls;
this.selectedAttachmentList = attachmentList;
Expand Down

0 comments on commit 728e489

Please sign in to comment.