bug fixed
This commit is contained in:
parent
95a22f0861
commit
9b76e29594
|
@ -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) {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="bubble-main">
|
||||
<span [innerHTML]="message.sentMessage | linky"></span>
|
||||
<span [innerHTML]="message.sentMessage | linky | ucapSafeHtml"></span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user