diff --git a/src/common/mdh-html-to-text.js b/src/common/mdh-html-to-text.js index 746d957c..bc12408f 100644 --- a/src/common/mdh-html-to-text.js +++ b/src/common/mdh-html-to-text.js @@ -105,6 +105,12 @@ MdhHtmlToText.prototype._preprocess = function() { // to remain intact. this.excludeTagBlocks('blockquote', true); + // Trying to keep current formatting intact (see issue #676) + this.preprocessInfo.html = this.preprocessInfo.html.replace( + /<(\/)?(b|i|u|strike)>/ig, + '<$1$2>' + ); + // Try to leave intact the line that Gmail adds that says: // On such-a-date, such-a-person wrote: this.preprocessInfo.html = this.preprocessInfo.html.replace(