bug fixed

This commit is contained in:
richard-loafle 2020-02-06 14:31:21 +09:00
parent 95a22f0861
commit 9b76e29594
2 changed files with 4 additions and 4 deletions

View File

@ -682,7 +682,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
req: {
roomSeq: this.roomInfoSubject.value.roomSeq,
eventType: EventType.Character,
sentMessage: message
sentMessage: StringUtil.escapeHtml(message)
}
})
);
@ -717,7 +717,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
const stickerJson: StickerEventJson = {
name: '스티커',
file: this.selectedSticker.index,
chat: !!message ? message.trim() : ''
chat: !!message ? StringUtil.escapeHtml(message.trim()) : ''
};
this.store.dispatch(
EventStore.send({
@ -750,7 +750,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
/** Send Translation message */
sendMessageOfTranslate(message: string) {
const destLocale = this.destLocale;
const original = message;
const original = StringUtil.escapeHtml(message);
const roomSeq = this.roomInfoSubject.value.roomSeq;
if (!!this.isTranslationProcess) {

View File

@ -1,3 +1,3 @@
<div class="bubble-main">
<span [innerHTML]="message.sentMessage | linky"></span>
<span [innerHTML]="message.sentMessage | linky | ucapSafeHtml"></span>
</div>