fix order of converting HTML back to text
Fixes a regression introduced by ad9384e
, which escapes wanted line
breaks, such as <br /> and <div>.
This commit is contained in:
parent
4a8cbcd8f0
commit
8a58afc8e6
@ -63,8 +63,9 @@ define(["app/i18n"], function(i18n) {
|
||||
};
|
||||
|
||||
var detext = function(text) {
|
||||
return escape(text.replace(/\n\n/gi, '<br><div><br></div>')
|
||||
.replace(/\n/gi, '<br>'));
|
||||
text = escape(text);
|
||||
return text.replace(/\n\n/gi, '<br><div><br></div>')
|
||||
.replace(/\n/gi, '<br>');
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user