mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
fix html parsing in write
This commit is contained in:
parent
34dea03c5b
commit
f2d380d6d5
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user