Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2021-08-04 15:51:49 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-08-06 18:38:04 +0300
commited6b514189540fc717ac376ae51055f2aafd9112 (patch)
treee035394ef3724637030a23fdaf9a31989481c91b
parente3ffe7283192c217b97463f05543cd9443ca0dc8 (diff)
Remove div tags from safari messages
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index cf7a7154e..6124db273 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -318,6 +318,8 @@ export default {
*/
rawToParsed(text) {
text = text.replace(/<br>/g, '\n')
+ text = text.replace(/<div>/g, '\n')
+ text = text.replace(/<\/div>/g, '')
text = text.replace(/&nbsp;/g, ' ')
// Since we used innerHTML to get the content of the div.contenteditable