Skip to content
Snippets Groups Projects
Commit 94230fe5 authored by Noiob's avatar Noiob Committed by Eugen Rochko
Browse files

Fix newlines-to-spaces functionality (#6158)

yay for regexes, amirite
parent 04ecf44c
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
const unescapeHTML = (html) => {
const wrapper = document.createElement('div');
html = html.replace(/<br \/>|<br>|\n/, ' ');
html = html.replace(/<br \/>|<br>|\n/g, ' ');
wrapper.innerHTML = html;
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