1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 09:22:23 -05:00

fix html parsing in write

This commit is contained in:
Tankred Hase 2013-10-29 19:57:49 +01:00
parent 34dea03c5b
commit f2d380d6d5

View File

@ -125,6 +125,9 @@ define(function(require) {
function has(substr) { function has(substr) {
return (body.indexOf(substr) !== -1); return (body.indexOf(substr) !== -1);
} }
while (has('<div><br>')) {
body = body.replace('<div><br>', '\n');
}
while (has('<div>')) { while (has('<div>')) {
body = body.replace('<div>', '\n'); body = body.replace('<div>', '\n');
} }