Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: remove unnecessary escaping
Bettenbuk Zoltanf270b509726b
diff --git a/react/features/chat/components/web/ChatMessage.js b/react/features/chat/components/web/ChatMessage.jsindex ff58c1ab95..99936d356b 100644--- a/react/features/chat/components/web/ChatMessage.js+++ b/react/features/chat/components/web/ChatMessage.js@@ -30,16 +30,10 @@ class ChatMessage extends AbstractChatMessage<Props> {}): message.message;- // replace links and smileys- // Strophe already escapes special symbols on sending,- // so we escape here only tags to avoid double &- const escMessage = messageToDisplay.replace(/</g, '<')- .replace(/>/g, '>')- .replace(/\n/g, '<br/>');const processedMessage = [];// content is an array of text and emoji components- const content = toArray(escMessage, { className: 'smiley' });+ const content = toArray(messageToDisplay, { className: 'smiley' });content.forEach(i => {if (typeof i === 'string') {diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.jsindex d5241e861f..a19633fbfa 100644--- a/react/features/chat/middleware.js+++ b/react/features/chat/middleware.js@@ -1,7 +1,5 @@// @flow-import UIUtil from '../../../modules/UI/util/UIUtil';-import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app';import {CONFERENCE_JOINED,@@ -49,12 +47,10 @@ MiddlewareRegistry.register(store => next => action => {const { conference } = store.getState()['features/base/conference'];if (conference) {- const escapedMessage = UIUtil.escapeHtml(action.message);-if (typeof APP !== 'undefined') {- APP.API.notifySendingChatMessage(escapedMessage);+ APP.API.notifySendingChatMessage(action.message);}- conference.sendTextMessage(escapedMessage);+ conference.sendTextMessage(action.message);}break;}