prevent   insertion, closes #112

This commit is contained in:
Martin Zimmermann 2014-08-09 20:28:54 +02:00
parent 57d4380106
commit 7008e88314

View File

@ -57,7 +57,8 @@ define(["app/i18n"], function(i18n) {
var _ = document.createElement("div"); var _ = document.createElement("div");
_.innerHTML = html.replace(/<div><br><\/div>/gi, '<br>') _.innerHTML = html.replace(/<div><br><\/div>/gi, '<br>')
.replace(/<div>/gi,'<br>') .replace(/<div>/gi,'<br>')
.replace(/<br>/gi, '\n'); .replace(/<br>/gi, '\n')
.replace(/&nbsp;/gi, ' ');
return _.textContent.trim(); return _.textContent.trim();
}; };