Skip to content
Snippets Groups Projects
Commit ae716a12 authored by Ondřej Hruška's avatar Ondřej Hruška Committed by Eugen Rochko
Browse files

replace newlines in desktop notif with spaces instead of removing them (#5361)

parent f63a40e7
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => { ...@@ -31,6 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
const unescapeHTML = (html) => { const unescapeHTML = (html) => {
const wrapper = document.createElement('div'); const wrapper = document.createElement('div');
html = html.replace(/<br \/>|<br>|\n/, ' ');
wrapper.innerHTML = html; wrapper.innerHTML = html;
return wrapper.textContent; return wrapper.textContent;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment