Skip to content

Commit 9545cec

Browse files
author
Gal Falkon
committed
Merge branch 'issue-676'
2 parents ab546b7 + 0a1eada commit 9545cec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/mdh-html-to-text.js

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ MdhHtmlToText.prototype._preprocess = function() {
111111
'<a $1>$2<\/a>'
112112
);
113113

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+
'&lt;$1$2&gt;'
118+
);
119+
114120
// Try to leave intact the line that Gmail adds that says:
115121
// On such-a-date, such-a-person <email addy> wrote:
116122
this.preprocessInfo.html = this.preprocessInfo.html.replace(

0 commit comments

Comments
 (0)