From ed6b514189540fc717ac376ae51055f2aafd9112 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Wed, 4 Aug 2021 14:51:49 +0200 Subject: [PATCH] Remove div tags from safari messages Signed-off-by: Marco Ambrosini --- src/components/NewMessageForm/NewMessageForm.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index cf7a7154e0..6124db273a 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -318,6 +318,8 @@ export default { */ rawToParsed(text) { text = text.replace(/
/g, '\n') + text = text.replace(/
/g, '\n') + text = text.replace(/<\/div>/g, '') text = text.replace(/ /g, ' ') // Since we used innerHTML to get the content of the div.contenteditable