We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df5aee commit 0a1eadaCopy full SHA for 0a1eada
src/common/mdh-html-to-text.js
@@ -105,6 +105,12 @@ MdhHtmlToText.prototype._preprocess = function() {
105
// to remain intact.
106
this.excludeTagBlocks('blockquote', true);
107
108
+ // Trying to keep current formatting intact (see issue #676)
109
+ this.preprocessInfo.html = this.preprocessInfo.html.replace(
110
+ /<(\/)?(b|i|u|strike)>/ig,
111
+ '<$1$2>'
112
+ );
113
+
114
// Try to leave intact the line that Gmail adds that says:
115
// On such-a-date, such-a-person <email addy> wrote:
116
this.preprocessInfo.html = this.preprocessInfo.html.replace(
0 commit comments