1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 15:58:49 -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) {
return (body.indexOf(substr) !== -1);
}
while (has('<div><br>')) {
body = body.replace('<div><br>', '\n');
}
while (has('<div>')) {
body = body.replace('<div>', '\n');
}