From 8c4ead84217d17bce24812697f16695967719c99 Mon Sep 17 00:00:00 2001 From: Gregoire Parant <g.parant@thecodingmachine.com> Date: Mon, 23 Aug 2021 09:43:43 +0200 Subject: [PATCH] Add "\n\r" to match Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com> --- front/src/WebRtc/HtmlUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/WebRtc/HtmlUtils.ts b/front/src/WebRtc/HtmlUtils.ts index b99ceffc..454d9a5d 100644 --- a/front/src/WebRtc/HtmlUtils.ts +++ b/front/src/WebRtc/HtmlUtils.ts @@ -28,7 +28,7 @@ export class HtmlUtils { public static escapeHtml(html: string): string { let innerHTML = ""; - const tabBackLine = html.match(/(\r\n|\r|\n)/g); + const tabBackLine = html.match(/(\n\r|\r\n|\r|\n)/g); for (const text in blackListManager) { const p = document.createElement("p"); p.appendChild(document.createTextNode(text));