mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
bugfix detect html in reply
This commit is contained in:
parent
d2565df871
commit
61d97ab145
@ -49,7 +49,7 @@
|
|||||||
var bodyRows = re.get('body').split('\n');
|
var bodyRows = re.get('body').split('\n');
|
||||||
var isHtml = false;
|
var isHtml = false;
|
||||||
_.each(bodyRows, function(row) {
|
_.each(bodyRows, function(row) {
|
||||||
if (row.indexOf('<') === 0) {
|
if (row.indexOf('</') !== -1) {
|
||||||
isHtml = true;
|
isHtml = true;
|
||||||
}
|
}
|
||||||
body += (!isHtml) ? '> ' + row + '\n' : '';
|
body += (!isHtml) ? '> ' + row + '\n' : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user