Skip to content

Commit

Permalink
Merge pull request #6086 from nextcloud/backport/6079/stable22.1
Browse files Browse the repository at this point in the history
[stable22.1] Remove div tags from safari messages
  • Loading branch information
marcoambrosini committed Aug 6, 2021
2 parents e3ffe72 + ed6b514 commit 753af87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/NewMessageForm/NewMessageForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 753af87

Please sign in to comment.