diff options
author | marco <marcoambrosini@pm.me> | 2021-08-06 18:39:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 18:39:53 +0300 |
commit | 753af87280738be49efb8d3210cfc02e381fd92d (patch) | |
tree | e035394ef3724637030a23fdaf9a31989481c91b | |
parent | e3ffe7283192c217b97463f05543cd9443ca0dc8 (diff) | |
parent | ed6b514189540fc717ac376ae51055f2aafd9112 (diff) |
Merge pull request #6086 from nextcloud/backport/6079/stable22.1v12.1.0
[stable22.1] Remove div tags from safari messages
-rw-r--r-- | src/components/NewMessageForm/NewMessageForm.vue | 2 |
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(/ /g, ' ') // Since we used innerHTML to get the content of the div.contenteditable |