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