From b256431828b45a8eb0addca59cf70de8682c1cc7 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Tue, 14 Sep 2021 13:08:25 +0200 Subject: [PATCH] action message html --- front/package.json | 2 +- .../LayoutManager/LayoutManager.svelte | 18 +++++++++++++++++- front/yarn.lock | 8 ++++---- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/front/package.json b/front/package.json index f76b4cd6..5635a01e 100644 --- a/front/package.json +++ b/front/package.json @@ -56,7 +56,7 @@ "quill": "1.3.6", "quill-delta-to-html": "^0.12.0", "rxjs": "^6.6.3", - "sanitize-html": "^2.4.0", + "sanitize-html": "^2.5.0", "simple-peer": "^9.11.0", "socket.io-client": "^2.3.0", "standardized-audio-context": "^25.2.4", diff --git a/front/src/Components/LayoutManager/LayoutManager.svelte b/front/src/Components/LayoutManager/LayoutManager.svelte index 2e164836..5e44df84 100644 --- a/front/src/Components/LayoutManager/LayoutManager.svelte +++ b/front/src/Components/LayoutManager/LayoutManager.svelte @@ -1,16 +1,32 @@
{action.message}
+{@html sanitize(action.message)}