bug fixed
This commit is contained in:
parent
1f64a4d428
commit
17f9af17aa
|
@ -2,7 +2,7 @@
|
|||
<div
|
||||
*ngIf="!translationSimpleview || (!!translationSimpleview && !!isMe)"
|
||||
class="original"
|
||||
[innerHTML]="message.sentMessageJson.original | linky | ucapSafeHtml"
|
||||
[innerHTML]="message.sentMessageJson.original | ucapSafeHtml | linky"
|
||||
(contextmenu)="onContextMenuMessage($event, 'original')"
|
||||
></div>
|
||||
<div
|
||||
|
@ -12,7 +12,7 @@
|
|||
>
|
||||
<span class="language">{{ message.sentMessageJson.destLocale }}</span>
|
||||
<span
|
||||
[innerHTML]="message.sentMessageJson.translation | linky | ucapSafeHtml"
|
||||
[innerHTML]="message.sentMessageJson.translation | ucapSafeHtml | linky"
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="bubble-main">
|
||||
<span
|
||||
class="content"
|
||||
[innerHTML]="content | linefeedtohtml | linky | ucapSafeHtml"
|
||||
[innerHTML]="content | linefeedtohtml | ucapSafeHtml | linky"
|
||||
></span>
|
||||
<span>
|
||||
{{ message.sendDate | ucapDate: 'YYYY.MM.DD a hh:mm' }}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</li>
|
||||
<li
|
||||
*ngIf="contents"
|
||||
[innerHTML]="contents | linefeedtohtml | linky | ucapSafeHtml"
|
||||
[innerHTML]="contents | linefeedtohtml | ucapSafeHtml | linky"
|
||||
></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="bubble-main">
|
||||
<span [innerHTML]="message.sentMessage | linky | ucapSafeHtml"></span>
|
||||
<span [innerHTML]="message.sentMessage | ucapSafeHtml | linky"></span>
|
||||
</div>
|
||||
|
|
|
@ -7,8 +7,9 @@ export class SafeHtmlPipe implements PipeTransform {
|
|||
constructor(private domSanitizer: DomSanitizer) {}
|
||||
|
||||
public transform(value: string) {
|
||||
return this.domSanitizer.bypassSecurityTrustHtml(
|
||||
StringUtil.escapeHtml(value)
|
||||
);
|
||||
// return this.domSanitizer.bypassSecurityTrustHtml(
|
||||
// StringUtil.escapeHtml(value)
|
||||
// );
|
||||
return StringUtil.escapeHtml(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user