Render frontend html as plain text

This commit is contained in:
shamoon
2023-05-09 21:51:31 -07:00
parent d7d95037be
commit 49754d33fa
2 changed files with 11 additions and 9 deletions

View File

@@ -207,8 +207,8 @@
<object [data]="previewUrl | safeUrl" class="preview-sticky" width="100%"></object>
</ng-template>
</ng-container>
<ng-container *ngIf="getContentType() === 'text/plain'">
<div [innerHTML]="previewHtml | safeHtml" class="preview-sticky bg-light p-3" width="100%"></div>
<ng-container *ngIf="renderAsPlainText">
<div [innerText]="previewText" class="preview-sticky bg-light p-3" width="100%"></div>
</ng-container>
<div *ngIf="requiresPassword" class="password-prompt">
<form>