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